[TYPO3] Inherit content from parent page (TemplaVoila)

Peter Klein peter at umloud.dk
Mon Mar 26 16:06:06 CEST 2007


Hi Wytse.
Install the extension "KB TV Content Slide" (extKey: kb_tv_cont_slide)
http://typo3.org/extensions/repository/view/kb_tv_cont_slide/0.2.0/

Description:
"This extension lets you insert the content of a TV Column field into a TV 
TS-Object path field. But if no content is found in the column on the actual 
page the content of the parent page is taken."

-- 
Peter Klein/Umloud Untd

"Wytse P. Bezemer" <w.bezemer at drecomm.nl> skrev i en meddelelse 
news:mailman.95925.1174904840.21067.typo3-english at lists.netfielders.de...
> Hi List,
>
> Currently I'm working on a website which is to be build in TemplaVoila, 
> which
> requires to have the content in one column fetched the current page if 
> there is
> content, but if there is no content defined, it should look up the page 
> tree to
> fetch content from there.
> In the past with the old way we did it as follows:
>
> temp.5_levels_up = CONTENT
> temp.5_levels_up {
> table = tt_content
> select {
>           pidInList.data = leveluid: -6
>           orderBy = sorting
>           where = colPos=4
>      }
> }
> temp.4_levels_up < temp.5_levels_up
> temp.4_levels_up {
> select {
>                pidInList.data = leveluid: -5
>       }
>        stdWrap.ifEmpty.cObject < temp.5_levels_up
> }
>
>
> and so on. However, since with TemplataVoila there are no colPos, I don't 
> have
> any idea how this can be done for TemplaVoila.
> I would think I should modify the Typoscript which is placed by the 
> wizard, but
> for as far as I know the RECORDS object doen't have a pidInList.data.
>
> I could do it by making complete Typoscript element, but by doing that I
> probably would limit the number of content elements which are displayed.
>
> Does anyone know how this can be solved?
>
> Thanks in advance.
>
> Wytse P. Bezemer 




More information about the TYPO3-english mailing list