[TYPO3-dev] Subparts not substituted inT3 6.2?

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Mon Sep 9 19:13:05 CEST 2013


On 09/09/2013 10:58 AM, Helmut Hummel wrote:
> On 08.09.13 16:39, g4-lisz at tonarchiv.ch wrote:
>
>> Same issue on 6.1.4 - what am I missing here?!
>
> This TypoScript works perfectly on master for me:
>
> page.30 = TEMPLATE
> page.30.template = TEXT
> page.30.template.value (
> <!-- ###DOCUMENT_BODY### START-->
> <div id="Page">
>     <div id="LogoLayer">###LOGO###</div>
>     <div id="Middle">
>         <div id="Menu">
>             <!-- ###MENU### START-->
>                 <a href="start.htm">Navigation link</a>
>             <!-- ###MENU### END-->
>         </div>
>         <div id="Inhalt">
>             <!-- ###CONTENT### START-->
>                 <h1>Welcome</h1>
>             <p>Dummy content to be replaced.</p>
>             <!-- ###CONTENT### END-->
>         </div>
>     </div>
>     <div id="FooterLayer">###FOOTER###</div>
> </div>
> <!-- ###DOCUMENT_BODY### END-->
> )
> page.30.workOnSubpart = DOCUMENT_BODY
> page.30.subparts {
>   CONTENT < styles.content.get
>   MENU = TEXT
>   MENU.value = bar
> }
>
> Subparts are not replaced, if the object you assign is invalid (empty)
>
> CONTENT < not.existant.path
>
> So I guess that in your case the objects "styles.content.get" (maybe
> css_styled_content template not assigned), "lib.mainnav" and
> "lib.sidenav" (maybe ordering problem) are empty at the place you
> assign them to the subparts.
>
>
> Kind regards,
> Helmut
>
Hi Helmut

Thank you very much. With your help i was able to isolate the problem...
page.30.workOnSubpart = DOCUMENT_BODY
page.30.subparts {
  CONTENT = TEXT
  CONTENT.value = foo
  MENU = TEXT
  MENU.value = bar
}
This replaced the tags as expected. Now i wonder why styles.content.get
returns nothing. There IS content in the "normal" column of the page!
Maye there is something wrong with some extension?

Best wishes,
Till



More information about the TYPO3-dev mailing list