[Typo3] tt-news: 2 advanced questions ....

Tom Walter t3 at wnets.de
Fri Nov 18 22:29:52 CET 2005


I posted two questions earlier this week in the tt-news-list and did not 
get an answer - I do not know how many people are listening to that list 
so I decided to post my question here as well in the hope that somebody 
can help me here ...

Would be nice if I could get some feedback. I copied both topics 
together as they are related ...

My first problem:
I do have news with images and some without. They should display in the 
same list (depending only on their date). With image the template should 
look like this:

1.<div class="newsitem">
2.<div class="newsimage">
3.<!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###--></div>
4.<div class="newsteaser">
5.<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--><br />
6. ###NEWS_SUBHEADER###<br />
7.<div class="newsmore">
8.<!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--> >></div>
9.</div>
10.</div>

without image it should look like:

1.<div class="newsitem">
2.
3.
4.<div class="newsteaser_noImg">
5.<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--><br />
6.###NEWS_SUBHEADER###<br />
7.<div class="newsmore">
8.<!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--> >></div>
9.</div>
10.</div>

Difference is that the div-object for newsimage should not be there at 
all if there is no pic in the news and the class in line 4 should be a 
different one.

How can I do this ?

#################

I got a design where I have to put 2 columns with 3 news items each on a
page.

I did this by using two tt_news-plugins (each as list) on this page. The
first displays left and got news 1 till 3 the second plugin got 4 to 6.

Each time I now want to display a pagebrowser it shows me item 1 to 3
and two pages (got only 6 news articles for testing at the moment)

How can I create a page browser which takes 6 news items a page and
moves than to number 7 onward ?

Thanks a lot for any help !
Tom



More information about the TYPO3-english mailing list