[TYPO3] adding a variable in head of template
Ron Hall
rhall at irvingbible.org
Thu Apr 13 15:44:11 CEST 2006
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
More information about the TYPO3-english
mailing list