[TYPO3-ttnews] strange category behavior

John Kavanagh john.kavs at gmail.com
Thu Aug 7 02:39:25 CEST 2008


Yes, I tried it there and it didn't work. don't you think it's unusual that
this only happens in the 1st post only??

Here is the html of the 1st 4 posts on the page:

---------------------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="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>
		
		<div class="post post01">				
			<h2><a href="index.php?id=9&amp;tx_ttnews[tt_news]=5&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=5f7ff62037"
title="Blog post 4"><div class="cat-id-2">Blog post 4</div></a></h2>
			<small><div class="cat-id-2">June 05, 2008</div></small>
<a href="index.php?id=9&amp;tx_ttnews[tt_news]=5&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=5f7ff62037"
title="Blog post 4"><div class="pic cat-id-2"><img
src="uploads/pics/beehive.jpg" width="308" height="462" 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>

			</div>
			
			<p class="postmetadata">Posted in <div class="cat-id-2"><a
href="index.php?id=2&amp;tx_ttnews[cat]=2&amp;cHash=7904f117af"
title="Gossip">Gossip</a></div> <strong>|</strong> <a
href="index.php?id=9&amp;tx_ttnews[tt_news]=5&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=5f7ff62037"
title="Blog post 4">1 Comment</a></p>

		</div>
		
		<div class="post post02">	
		<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]=9&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=823a2d6683"
title="Blog post 8"><div class="cat-id-2">Blog post 8</div></a></h2>

<a href="index.php?id=9&amp;tx_ttnews[tt_news]=9&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=823a2d6683"
title="Blog post 8"><div class="pic cat-id-2"><img
src="uploads/pics/caprice.jpg" width="346" height="315" 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]=9&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=823a2d6683"
title="Blog post 8"> 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>
		
		<div class="post post03">				
			<h2><a href="index.php?id=9&amp;tx_ttnews[tt_news]=6&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=3cf23cf2e6"
title="Blog post 5"><div class="cat-id-2">Blog post 5</div></a></h2>
			<small><div class="cat-id-2">June 05, 2008</div></small>
<a href="index.php?id=9&amp;tx_ttnews[tt_news]=6&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=3cf23cf2e6"
title="Blog post 5"><div class="pic cat-id-2"><img
src="uploads/pics/accessorise.jpg" width="308" height="401" 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>

			</div>
			
			<p class="postmetadata">Posted in <div class="cat-id-2"><a
href="index.php?id=2&amp;tx_ttnews[cat]=2&amp;cHash=7904f117af"
title="Gossip">Gossip</a></div> <strong>|</strong> <a
href="index.php?id=9&amp;tx_ttnews[tt_news]=6&amp;tx_ttnews[year]=2008&amp;tx_ttnews[month]=06&amp;tx_ttnews[day]=05&amp;cHash=3cf23cf2e6"
title="Blog post 5"> No Comments</a></p>

		</div>

---------------------html end----------------------------------

i am also using tim-tab if that matters.

Thanks,

John.

On Wed, Aug 6, 2008 at 11:55 PM, Andreas Burg <typo3 at andreasburg.de> wrote:

> 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
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-news
>


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