[TYPO3-english] display content in every page

Joko Nurjadi fountain_melody at yahoo.com.sg
Thu Apr 16 18:14:32 CEST 2009


I've just tried this successfully. Thanks! :)

----- Original Message ----- 
From: "Andy Pattynama" <andy.pattynama at gmail.com>
On Tue, Apr 7, 2009 at 8:38 PM, Joko Nurjadi
<fountain_melody at yahoo.com.sg> wrote:
> Hi,
>
> I want to display a content (eg. login box, image) in every page (at 
> sidebar) of my website, I just can think the way to do this is add the 
> same content (or insert record) manually in every page, is there any 
> simpler way to do this, since I have many pages? Thanks.

1. Modify the DS / TO in TemplaVoila.
2. Add a new element to your DS.
3. Editing Type should be a "TypoScript Object Path", name it
something like: lib.mytestelement
4. Map it where you want to the element to be shown.
5. Add the content element and remember the UID of the content element.
6. Go into your template and add the following:
lib.mytestelement= COA
lib.mytestelement{
  10 = RECORDS
  10.tables = tt_content
  10.source = [UID OF YOUR CONTENT ELEMENT]
}

Clear the cache et voilà :)

Cheers,
Andy 



More information about the TYPO3-english mailing list