[TYPO3-english] Subpart markers removed, but no content
ktt
kestutis98 at yahoo.com
Mon Nov 24 14:11:42 CET 2008
Thank you for nice sugestion. Now I have correct version:
-----------------------------------------------------------------------
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/SG/index.html
elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.all = 1
}
}
temp.logo = CONTENT
temp.logo {
table = tt_content
select {
pidInList = this
where = uid = 2
languageField = sys_language_uid
}
}
temp.bodyTemplate = TEMPLATE
temp.bodyTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.logo < temp.logo
}
page = PAGE
page.typeNum = 0
page.1 < temp.bodyTemplate
-----------------------------------------------------------------------
But the problem remains the same - subparts removed, but no content.
Maybe the problem hides somethere in configuration settings?
I also tested
subparts.logo = TEXT
subparts.logo.value = Hello World
instead of
subparts.logo < temp.logo
and it works.
Version without automaketemplate works as well (database is accessible):
-----------------------------------------------------------------------
page = PAGE
page.typenum = 0
page.10 = CONTENT
page.10.table = tt_content
page.10.select {
pidInList = 1
where = uid = 2
languageField = sys_language_uid
}
page.10.renderObj = COA
page.10.renderObj {
20 = TEXT
20.field = bodytext
20.wrap = <p>|</p>
}
-----------------------------------------------------------------------
--- On Fri, 11/21/08, StephenBungert <stephenbungert at yahoo.de> wrote:
> From: StephenBungert <stephenbungert at yahoo.de>
> Subject: Re: [TYPO3-english] Subpart markers removed, but no content
> To: typo3-english at lists.netfielders.de
> Date: Friday, November 21, 2008, 2:12 PM
> Well I always have
>
> BODY.all = 1
> BODY.all.subpartMarker = DOCUMENT_BODY
>
> HEAD.all = 1
> HEAD.all.subpartMarker = DOCUMENT_HEADER
>
> straight after 'elements {' before I declare div
> and other tags to be
> marked. It was like that in the tutorial, I think it's
> required, because
> before 'subparts.logo < tmp.logo'.
>
> You should have this:
>
> workOnSubpart = DOCUMENT_BODY
> then
>
> subparts.logo < tmp.logo
>
> See if that works.
>
> -----
> --
> Stephen Bungert
> --
> View this message in context:
> http://www.nabble.com/-TYPO3-english--TTNEWS---adding-extra-codes-templates-in-%22what-to-display%22-tp20620239p20621843.html
> Sent from the TYPO3 English mailing list archive at
> Nabble.com.
>
> _______________________________________________
> 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