[TYPO3-ttnews] strange category behavior

Andreas Burg typo3 at andreasburg.de
Thu Aug 7 00:55:36 CEST 2008


John Kavanagh schrieb:
> Hi Andreas,
> 
> Thanks for the reply, sorry about taking so long to get back.
> The typoscript i have used is:
> 
> ---------------typoscript begin-----------------------
> 
> plugin.tt_news.displayList.subheader_stdWrap.crop = 400| ... | 1
> plugin.tt_news.displayLatest.subheader_stdWrap.crop = 1000 | ... | 1
> plugin.tt_news.general_stdWrap.wrap = <div class="inner">|</div>
> plugin.tt_news.displayList {
> 
>  title_stdWrap.wrap = <div class="cat-id-{register:newsCategoryUid}">|</div>
> 
>  title_stdWrap.insertData=1
> 
>  date_stdWrap.wrap = <div class="cat-id-{register:newsCategoryUid}">|</div>
> 
>  date_stdWrap.insertData=1
> 
>  categoryTitles_stdWrap.wrap = <div
> class="cat-id-{register:newsCategoryUid}">|</div>
> 
>  categoryTitles_stdWrap.insertData=1
> 
>  general_stdWrap.wrap = <div
> class="cat-id-{register:newsCategoryUid}">|</div>
> 
>  general_stdWrap.insertData=1
> 
>  image.stdWrap.wrap = <div class="pic
> cat-id-{register:newsCategoryUid}">|</div>
> 
>  image.stdWrap.insertData=1
> 
>  subheader_stdWrap.wrap = <div
> class="cat-id-{register:newsCategoryUid}">|</div>
> 
>  subheader_stdWrap.insertData=1
> 
> }
> 
> plugin.tt_news.latestLimit = 10
> plugin.tt_news.alternatingLayouts = 5
> 
> ---------------typoscript end-----------------------
> 
> The resulting html of the 1st post is:
> 
> 
> ---------------html begin-----------------------
> 
> 		<div class="post ">	
> 		<h1><div class="cat-id-2"><a
> href="index.php?id=2&amp;tx_ttnews[cat]=2&amp;cHash=7904f117af"
> title="Gossip">Gossip</a></div><span class="subcat-n-date"><div
> class="cat-id-2">June 05, 2008</div></span></h1>
> 			<h2><a href="index.php?id=9&amp;tx_ttnews[tt_news]=8&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=e804d6e0e7"
> title="Blog post 7"><div class="cat-id-2">Blog post 7</div></a></h2>
> 
> <a href="index.php?id=9&amp;tx_ttnews[tt_news]=8&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=e804d6e0e7"
> title="Blog post 7"><div class="pic cat-id-"><img
> src="fileadmin/templates/template03/images/post00/frame.png"
> class="frame" alt="" /><img src="typo3temp/pics/8aecfad999.jpg"
> width="400" height="378" border="0" alt="" title="" /></div></a>
> 			<div class="entry">
> 			<div class="inner"><p class="cat-id-2"> Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam varius. Cras vitae nibh. Vivamus
> posuere, velit vitae volutpat tempor, massa eros facilisis justo, in
> placerat tortor sapien ac felis. Nunc nunc. Etiam non mi. Aliquam
> pulvinar leo vel risus. Fusce sit amet neque. Phasellus imperdiet.
> Mauris vehicula diam quis lectus. Mauris bibendum molestie nunc.
> Pellentesque habitant morbi...</p></div>
> 			 <a href="index.php?id=9&amp;tx_ttnews[tt_news]=8&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=e804d6e0e7"
> title="Blog post 7"> No Comments</a>
> 			</div>
> <div class="post-footer"><a href="#bottom">go to end of page</a>s<a
> href="#top">back to top of page</a></div>
> 
> 		</div>
> 
> ---------------html end-----------------------
> 
> you can see that the <div> wrapping the image is the only tag without the
> cat-id number
> 
> John
> 
> 
> On Wed, Jul 30, 2008 at 9:46 PM, Andreas Burg <typo3 at andreasburg.de> wrote:
> 
>> John Kavanagh schrieb:
>>> Hello,
>>>
>>> I am wrapping the images of my tt_news articles with the following
>>> typoscript:
>>>
>>>  image.stdWrap.wrap = <div
>> class="cat-id-{register:newsCategoryUid}">|</div>
>>>  image.stdWrap.insertData=1
>>>
>>> It is working fine on every other post except the 1st one!! where i just
>> get
>>> class="cat-id-"...
>>>
>>> I have  also wrapped the title, subheader & text similarly and the are
>> all
>>> working on all the posts including first post!!
>>>
>>> Can anyone shine some light on this strange behavior??
>>>
>>> Thanks,
>>>
>>> John

Have you tried image_stdWrap instead of image.stdWrap?

Andreas


More information about the TYPO3-project-tt-news mailing list