TYPO3 tags and image issue with EXT: News System KEY: news VER: 2.2.1 - typo3

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.

Related

tt_news No categories when creating news

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 ...

excludeAlreadyDisplayedNews tx_news TYPO3 6.2

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.

How to link tt_news H1 title to the news itself?

For the SEO reason, I have to link the news title in single view to the news itself. When I try this by ###LINK_ITEM### marker it links to the (return-page) I've chosen in flexforms to return.
How should I link that title to the page itself, it also can be used as PERMALINK the other systems like wordpress have.
You can extend tt_news with new marker.
create the extension with the kickstarter or just create empty one (extend tt_news table if
necessary)
create hook-objects and register for the hook "extraItemMarkerProcessor"
create the marker and content within that hook and assign value of current url $url=t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');

How to make TSConfig work in TYPO3 tx_news

In TYPO3 6.1, how do I get the tsconfig for the tx_news news extension to work?
I try to add selectable layouts to news items:
tx_news.templateLayouts {
1 = A custom layout
99 = LLL:fileadmin/somelocallang/locallang.xml:someTranslation
}
This should add the new Layout to the Type field, as in:
or did I get that wrong? Where can that new custom layout be selected?
Also, I'm trying to prefill fields in flexforms (when a new plugin is inserted):
TCEFORM.tt_content.pi_flexform.tx_news.sDEF.categoryConjunction = and
But it does not work yet.
How can this be done?
With tx_news.templateLayouts you override the flexform for the news plugin you insert on a page, not for a news record.
Your second code looks almost right, but you forgot settings: TCEFORM.tt_content.pi_flexform.tx_news.sDEF.settings.categoryConjunction = and
And even though this code is right, it will not work because of a bug with flexform fields that have a dot in their name (this is just stupid).
I think the only way to cleanly modify the flexform, is to write a small extension which overrides the default news flexform.

TYPO3 with TemplaVoila missing Backend Content View

After setting up TemplaVoila like ever i end up in this view.
I set up TV with the wizard. all example pages and content elements were there (i deleted them after)
but they werent visible in Page view. also there are no "new contentelement" icons and all that stuff.
Heres the typoscript:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
No errors, installed everything like 20 times before. Just another TYPO3 Version 4.6.3 - but theres nothing to if there are some conflicts with TV and TYPO3 4.6.3
Check your TemplaVoila mapping. This usually happens when you don't have an entity for content elements mapped.