[TYPO3] single property of automaketemplate
robbenkopf at bluewin.ch
robbenkopf at bluewin.ch
Sun Jan 15 10:55:15 CET 2006
Hi all,
currently I have difficulties using the single property of the automaketemplate
- extension
I try to exchange values of tags without closing tags (e.g. IMG or BR)
Therefor I'm using the single property of the extension (as documented)
Unfortunately it doesn't work properly
Here my short example TypoScript template:
*******************************************************************
### Den auto template parser konfigurieren: ###
plugin.tx_automaketemplate_pi1 {
content = FILE
relPathPrefix = fileadmin/user_upload/test
content.file = fileadmin/user_upload/test/test.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.id {
kopf = 1
}
}
single {
IMG.id {
imgPrivatKlein = 1
}
BR.all = 1
BR.all.subpartMarker = Test
}
}
### cObject für den Body ###
my.mainTemplate = TEMPLATE
my.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
#workOnSubpart = DOCUMENT_BODY
}
### Seite erstellen ###
page = PAGE
page.typeNum = 0
page.noLinkUnderline = 0
page.10 < my.mainTemplate
The substitutions for the element tags with with open and close tags works
pretty well but the single property doesn't - neither for the <img> nor the
<br> tag.
Whats wrong? I read all the documentations I found, but I had to recognize
that all examples are refered to the element property.
*************************************************************
Here what I get on the FE after rendering:
<body ><!--###DOCUMENT_BODY### begin -->
<div id="kopf" ><!--###kopf### begin -->
<!--###kopf### end --></div>
<img id="imgPrivatKlein" src="fileadmin/user_upload/test./priv_100x32.jpg"
/>
<br>
<!--###DOCUMENT_BODY### end --></body>
</html>
</body>
The element tags are treated by the parser but not the single tags
*******************************************************************
Thanks a lot for any help
Best regards, Günter
More information about the TYPO3-english
mailing list