gl_pages_cat: Pages categorization in TYPO3
January 13, 2009 on 10:52 am | In English, Planet, TYPO3 | 2 Commentsgl_pages_cat is a TYPO3 extension that allows to relate TYPO3 pages with categories from tt_news_cat table. In that way, you’ll only have a category tree common for the whole website, pages and news are going to share the same categories.
At the beginning this extension just provided a method that returns the news related with the categories of the current page. It was enough for me, because of I was doing news lists from Formidable.
But now, it also provides a new method that returns the categories of the current page. With this method, for example, you can assign some categories to a page and, then, configure properly tt_news plugins to show only news related with the categories of that page. You could do something like that with the next TypoScript code:
includeLibs.user_pages_cat = EXT:gl_pages_cat/class.tx_glpagescat_div.php
lib.page.category = USER
lib.page.category.preUserFunc = tx_glpagescat_div->getPageCategories
plugin.tt_news.categorySelection < lib.page.category
plugin.tt_news.categoryMode = 1
I'm very grateful to Daniel Huf for having tested my extension and having given me his feedback (this TypoScript configuration). Thanks to this, the extension has improved and, from my point of view, now it's very useful combined with tt_news plugins.
For example, if you have a categorized TYPO3 website, once you have everything configured properly, you could change the news displayed on a page simply by changing the categories of the page.
2 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
Thanks a lot for your work and help.
Comment by Daniel — February 11, 2009 #