[TYPO3] TemplaVoila Dynamic Access to stored content element

Robert Flach, Developer robert.flach at webtooldeveloper.com
Sat Sep 8 20:06:54 CEST 2007


The task: 

I have sections of my template whose content needs to be dynamically 
generated, will be static across most of the pages of the site (but will 
be changed periodically through the back end), but will be different for 
certain pages.

The Idea:

1. Create a content element in a storage folder containing the content.
2. Creating a mapping of type TypoScriptObject in the DS for the main 
template of the site.
3. In the root page typoscript, create a typoscript object that points 
to or pulls in the content element from the storage folder.  Make this 
object the path for the typoscriptobject in the DS.
4. In any sub page in which the content needs to change, override that 
object in an extension template with the alternate content either  by 
pulling in a different content element from the storage folder, or 
creating a menu, etc.

The problem:
I can't seem to find how I can refer to and thus pull in the content 
from the content element in the storage folder via typoscript.  I'm sure 
it must be possible and indeed it seems like it would be one of the more 
basic typoscript functions, but I'm not being able to figure out how to 
do it.

If anyone can help me out with this problem I'd be very grateful :)  If 
you have suggestions for a better way to approach the problem I'd be 
interested in that too.
Thanks,
Robert Flach




More information about the TYPO3-english mailing list