[TYPO3-ttnews] tx_news Meta to page Meta "injection"
Thomas Skierlo
pubtsk1 at pix-pro.eu
Wed Feb 20 21:00:30 CET 2013
Stupid me - full usage of $newsItem within helper is no problem, unless
you don't try to access properties without the getters. $newsItem->title
will not work, but $newsItem->getTitle() will. So now the ViewHelper is
getting very "slim". 100% success for title, description, keywords, and
author(s), but still with problems merging the news crdate into the page
crdate. Last modified date is no problem and can just be pulled from
register.
How would you solve the problem to get OG tags for document creation
time, if you want this tag for regular as well as news detail pages?
What would happen if I issue them twice, via news partial and via TS.
Would they collide or gracefully override? Will find out tomorrow.
> Hi Georg,
>
> yes, I know and use those ViewHelpers, as well as the partial for Open
> Graph. There is no problem with the partial, as long as you only need
> OG meta information for news detail pages. But I want OG for (nearly)
> every page, so within news only news specific tags should be handled.
> The rest of the set will be generated by TS in the page template using
> my "injceted" properties. This part already works.
>
> Thomas
>
> Am 20.02.2013 14:35, schrieb Georg Ringer:
>> Hi,
>>
>> have you looked at Tx_News_ViewHelpers_HeaderDataViewHelper or
>> Tx_News_ViewHelpers_MetaTagViewHelper?
>>
>> also opengraph is already implemented in the detail view by default
>>
>> georg
>> _______________________________________________
>> TYPO3-project-tt-news mailing list
>> TYPO3-project-tt-news at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
>
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
More information about the TYPO3-project-tt-news
mailing list