I am using TYPO3 version 6.2.12 and tx_news extension version 3.1.0 (latest). I've a news detail page which contains a news list view plugin. I mean when I click on news item, I can see the detail view of that news items and a list view of news items from the same storage folder.
My requirement is I want to exclude the current news items from the list view.
Eg: Suppose I've a news item named "Test 1". When I click on this, I can see the single view of this particular news item. Along with that I've a list view which shows other news items from the same storage folder. Eg: Test 1, Test 2 and Test 3.
I want to exclude that "Test 1" from the list view beacause currently I am in the detail view of that "Test 1" news. Similarly for the detail view of "Test 2", I want to exclude "Test 2" from the list view.
I've added the configuration;
plugin.tx_news.settings.excludeAlreadyDisplayedNews =1
Also added <n:excludeDisplayedNews newsItem="{newsItem}"/>in the template file.
But this is not working. Can you guys help me to solve the issue?
To fix the problem we need to include the viewhelper in the news detail template:
`<n:excludeDisplayedNews newsItem="{newsItem}"/>`
We have to include this both in list view and detail templates.
Related
When I create a new article in the News administration of tt_news in Typo3 6.2, I am not able to select any categories in the "Options" window of the news, as there are none listed. But I have categories created and I can assign already existing new to categories, if I select it in the "Items" window of the category itself.
In image 1 you can see there are no categories listed, when creating or editing news entries, although there are some.
When I try to assign news to a category in the list module (opening the category and assigning a news item to it via "Items" section) it works, as you can see in image 2.
I have looked up if I need to specify for tt_news where the categories are stored, but I have not been able to find anything and I cannot remember doing so in the past (for other pages). Did I miss anything?
Did you figure it out ...?
To me it looks like you confused the tt_news categories, they would not show in the tab in image 1 ...
You'd edit this selecting the folder where your news is stored, selecting the article you'd like to assign to a category and then the 'Categories & Relations' tab ...
In IBM's Web Content Manager I have a page in the path:
TopArea > MainContent > SiteArea > content
which uses a Menu Component to pull items from a slightly different path, such as
TopArea > OtherContent > OtherSiteArea > othercontent
So, in the Menu Component, when I use [Property], [Placeholder], or [Element] tags, it pulls the data from othercontent. However, I need to use some kind of tag to pull data from the page that the menu component is being displayed on content.
Anyone know how to do this?
Here is a more specific example:
othercontent has Name: 3ee5fc.
content has Name: Home Page.
When using [Property context="autofill" type="content" field="name"] it displays 3ee5fc.
What kind of tag could I use (or what could I do) so that it would display Home Page instead?
Please note that there are multiple content items that are using this menu component, so I can't hard code (select) the content item, I need a tag that will find it based on what item is calling the menu component.
You need to change the context attribute. "autofill" will display from the items the menu has selected, where "current" will display the field from the item the menu is placed in.
Hi All
I'm running:
EXT.KEY: news on TYPO3 v. 6.1 with FLUID/EXTBASE.
I have 2 issue's/question.
1 - News Tag's disappear, when using "tag list" in plugin.
I have added a "tag list" as element on my TYPO3 page, and its working fine, my problem is when i add another news plugin on another page, it's showing all the tag's from the two news plugin setup and I dont what to do that, so if i go to "Startingpoint" in Settings/plugin for the "Tag List" news-element and set it to the folder I save my newslist1 in, then all the tag's are disappeared, how can I set the "Tag list" so it's only show the tag's thats in the news from the folder "Newslist1"?
I have done this "startingpoint" with the list show and its working fine, if at news page 1 it show the news from folder "newslist1" and if on news page 2 it shows only the news/items from folder "portfolio".
2 - more images for a news.
Is it possible to add some image for the news text, so i have 2-3 images in the site, like when u add a normal text/image element?
Answer to issue 2
You can enable the use of normal content elements in News. The switch to activate that feature is in the Extension Manager configuration of News. You then have the possibility to add any content element to a News record.
By default the content elements are rendered before the normal news content, see here:
https://git.typo3.org/TYPO3v4/Extensions/news.git/blob/HEAD:/Resources/Private/Templates/News/Detail.html#l67
Of course you can change to order if you copy the template and adjust it to your needs.
Its beter add you plugin width ts, like
lib.newstags = USER
lib.newstags{
userFunc = tx_extbase_core_bootstrap->run
extensionName = News
pluginName = Pi1
switchableControllerActions {
Tag {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
listPid = 73 # here you tagse source page/folder
}
}
Its beter to use Type "Innernal link". You can select in item edit form. Than you can add any page like contents element in your news item.
TYPO3 6.1
How do I use the multiple instance of the same plugin on the same page ?
I have the extbase extension with front end plugin with flexform switchableControllerActions.
One is "Category list" and another is "items list".
If I click on one category list items, its related items list should show in same page and category list items shold stay there too.
Create two separate FE plugins, one contains only categories and second only items actions .
Hope this helps
tx_yourextension.mvc.callDefaultActionIfActionCantBeResolved = 1
I have a LIST VIEW in tt_news. I want to display a list of all the categories each entry belongs to, like this:
"TITLE OF NEWS
Sports, Travel, Photos"
so that each category name links to the view of all news from that category, like the CATMENU.
How could I do it? Im using genericmarkers for tt_news to add custom objects
Use the extraItemMarkerProcessor we were talking about before and insert new marker ie. ###ITEM_CATEGORIES###. Then you can use some kind of loop for every category to build link with and pass it to the marker as a list of coma-separated links:
$pObj->cObj->typolink($catName, $catLinkConfArray);
Building links with typolink is documented in TSref