[Typo3] Strategy for page templates... help needed.

Christopher tombedlam at yahoo.com
Sun May 8 06:01:44 CEST 2005


Hiya,

--- Amir Mualem <amir219 at sbcglobal.net> wrote:
> Tyler Kraft wrote:
> > Amir I just told you!  Go back and read!  It is all to do with the 
> > content wrapping, which you can adjust and control through your
> template 
> > setup, and you can even do it from the tree structure via template > 
> > template object browser!  Choose what conetnt item you want to chage
> the 
> > default wrapping for and the it will not only show you what the
> wrapping 
> > is but also if you click on the item name you can then edit the
> wrapping 
> > to be whatever you want or need.
> 
> I am pretty sure the tree structure you mean via template is this right:
> 
> http://img.photobucket.com/albums/v289/Amirsan/tree.gif
> 
> Well I looked through it.  I dont see or know of a content item which 
> would direct me to changing the <h2> class that surrounds the 
> pagecontent headers... maybe I am blind or clueless (I think its 
> clueless)... Do you know any manual that teaches me how to use this tree 
> structure?


I can answer this. At the risk of re-igniting flame part of this thread,
I'll say that this is a better quality of question - but enough about that!
This is also definitely a question about a tool which could stand to be a
little bit better documented, especially since it's so damned useful...

So to the answer: nope, wrong tree. What you're looking for is called the
'Typoscript Object Browser,' or 'tsob' [1] and it (in conjunction with the
TSref) is the single most useful tool available for learning Typoscript
short of hiring Kasper to come over to your house and teach you himself.

To get to it, go to the 'Template' module in the BE, then from the select
box under 'Template Tools' in the rightmost frame choose 'TypoScript Object
Browser'. You'll get a tree which allows you to not only browse *every*
typoscript object used in your site, but also to edit, override or unset
any given item individually. Most of the wrapping is buried down deep in
lib.parseFunc_RTE, but be sure to go through tt_content and lib.stdheader
as well, cause (if you're picky about your HTML markup), you'll eventually
want to change how some of the content elements are rendered as well
(actually, looking back at your question, you'll want to head straight for
lib.stdheader).

Another useful tool for finding out where TS objects get their properties
is the "Template Analyzer" (available from the same place as the TSOB)
which a) shows the hierarchy of templates in your site, and b) allows you
to look directly at the contents of the static TS templates used by
extensions to render content (e.g. you can look at css-styled content's
static template directly).

Have fun. Once you get how useful the TSOB is, you'll suddenly find you can
manipulate almost every aspect of rendered content on your site.


-Christopher


[1] http://typo3.org/documentation/document-library/doc_tut_quickstart/The_Object_Browser/


		
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html



More information about the TYPO3-english mailing list