homepage Welcome to WebmasterWorld Guest from 54.167.179.48
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Typo3: get news titles (tt news)
tt_news, category, articles, typo3, typoscript
hellboy

5+ Year Member



 
Msg#: 4160502 posted 7:01 am on Jun 28, 2010 (gmt 0)

HI!

I'm looking for typoscript which would load news titles from certain category ID into right navigation (or anywhere on the page) wrapped into links which points to the single article.
I was unable to find such a script on the internet. Does anyone have any idea on how to do this?

Appreciate your help!
Thank you!

 

hellboy

5+ Year Member



 
Msg#: 4160502 posted 8:53 am on Jun 28, 2010 (gmt 0)

Finally I got it! Hope it helps someone

lib.rightnav = COA

lib.rightnav {
wrap = <ul class="list">|</ul>
10 = CONTENT
10 {
table = tt_news
select {
pidInList = 293
join = tt_news_cat_mm ON (tt_news.uid = tt_news_cat_mm.uid_local )
#andWhere.data = GPvar:tx_ttnews|tt_news
#andWhere.wrap = pid = 293
where = tt_news_cat_mm.uid_foreign = 3

}

renderObj = TEXT
renderObj {

field = title
wrap = <li>|</li>
}




}


}

ergophobe

WebmasterWorld Administrator ergophobe us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4160502 posted 2:03 pm on Jun 28, 2010 (gmt 0)

Congratulations and thanks for posting the solution!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved