menu - Typo3 list the content of all child-pages as content of the parent page -
as title says, need list content of child-pages on parent-page, after own content. or thing need is, 1 page content , and menu links different headers of content. e.g. athe parent-page content:
**parent head** parent text *first subhead* first subtext *second subhead* second subtext
and menu should like:
parent
-first subhead
-second subhead
i thought easier if parent-page "collects" content of child-pages. other solution was, child-pages links extern urls, specific c-ids of different contents of parent-page. think isn't easy website owner, doesn't know can find right c-id in web-page-source-code. how make that? or how can realize thing child-page-content?
edit: have solution now. have fix, submenu displayed without childpages. here code:
temp.contentnav = content temp.contentnav { table = tt_content select { pidinlist = 7 orderby = sorting = colpos=0 languagefield=sys_language_uid } renderobj = text renderobj { field = header wrap= <li>|</li> typolink.parameter.field=pid typolink.parameter.datawrap=|#{field:uid} typolink.atagparams = class="linkclass" if.istrue.field=header } wrap = <ul id="submenuclass"> | </ul> } page.10.marks.menu.2.no.after.cobject < temp.contentnav
try this
temp.pageids = hmenu temp.pageids.entrylevel = 1 temp.pageids.1 = tmenu temp.pageids.1 { no.stdwrap.field = uid no.allwrap = |, no.donotlinkit = 1 } lib.container = content lib.container.table = tt_content lib.container.select { pidinlist.cobject < temp.pageids }
Comments
Post a Comment