[Typo3] How to have the Breaking news on every page

Jesper Scheuer Nielsen jesper.scheuer
Mon Feb 14 11:08:59 CET 2005


Hi Martin,

Try this:

subparts.content < styles.content.get
subparts.news < plugin.tx_automaketemplate_pi1

and then drop the temp-thing. Else try with the temp and just insert that in 
stead of the plugin.XXX reference.

It might work :-)

Best regards,

Jesper


    # Substitute the ###content### subpart with dynamic content:
  subparts.content < styles.content.get

"Martin Rud" <rudi at rudekuvert.dk> skrev i en meddelelse 
news:mailman.1.1108302013.1221.typo3-english at lists.netfielders.de...
> Hi
>
> I´ve build up my page much like "Modern Template Building, Part 1" (with a 
> html-template-file and some TS in the setup). Now I want to have the 
> "Breaking News" to be in the right side of every page in my website.
>
> I´ve tried to make my TS setup like this:
>
> plugin.tt_news {
>  defaultCode = LATEST
>  pid_list = 3
> }
> temp.news < plugin.tt_news
>
> ... and then ...
>
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
>  template =< plugin.tx_automaketemplate_pi1
>  workOnSubpart = DOCUMENT_BODY
>
>  subparts.
>  subparts {
>   content < styles.content.get
>   news < temp.news
>  }
> }
>
> ... in my HTML-template I have this table...:
>
> <table>
>  <tr>
>   <td id="content">her goes the content...</td>
>   <td id="news"here goes the news..></td>
>  </tr>
> </table>
>
> It works fine when I am on the page with the id=3, but on every other page 
> no news show up... :o(
>
> So I guess I do things wrong... but how is it done, then?
>
> Best regards, Martin 





More information about the TYPO3-english mailing list