[TYPO3] adding a variable in head of template

Borut Rozman jedo at zipp.nu
Thu Apr 13 15:56:12 CEST 2006


it is something like that but I will have to get information about alias of that
page we are right at .. any idea how to get that info ?

thanks anyway for info
regards b.



Navajanje Ron Hall <rhall at irvingbible.org>:

> I do not know if this it exactly what you are looking for but this is one
> way that I insert a stylesheet reference into the head of the document.
>
> The head of my HTML template looks like this:
> _____________________________________________
> <head>
> <title>Put Title Here</title>
>
> <link rel="stylesheet" type="text/css" href="<!--###mainStyleSheet### begin
> -->stylesheet.css<!--###mainStyleSheet### end -->"  />
>
> </head>
> ____________________________________________
>
>
> My typoscript looks like this:
> _______________________________________________
> temp.style = TEXT
> temp.style.value = ../assets/css_main.css
>
> // --- ADJUST HEADER THIS KEEPS RELATIVE LINKS OK AND CSS CORRECT
> ------------------------
> headTemplate = TEMPLATE
> headTemplate {
>     template =< plugin.tx_automaketemplate_pi1
>     workOnSubpart = DOCUMENT_HEADER
>     subparts.mainStyleSheet < temp.style
>     }
> __________________________________________
>
>
> Bascially it replaces everything in the HTML template between the markers
> <!--###mainStyleSheet### begin -->
> &
> <!--###mainStyleSheet### end -->
> With the value of temp.style
>
> Hope it helps.
>
> Ron
>
> On 4/12/06 6:25 PM, "Borut Rozman" <jedo at zipp.nu> wrote:
>
> > I would like to let me say add a variable which is replaced in head of a
> > template via automaketemplate + ts. I would like to replace let me say tag
> > ALIAS with alias of page...
> >
> > how can I do that ?
> >
> > regards b.
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


Borut Rozman
Zipp design
http://www.zipp.nu

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the TYPO3-english mailing list