[TYPO3-templavoila] conditional templavolia section content

Christian Vetter Christian.Vetter at dragoner-design.de
Fri Apr 14 07:11:32 CEST 2006


You can use constants, like so:
    select.pidInList = {$variable.for.pid}
    select.uidInList = {$variable.for.uid}

Set the constants on the pages that start your sections:
variable.for {
    uid = 78
    pid = 52
}


Am 13.04.2006, 22:50 Uhr, schrieb oneilch <oneilch at yahoo.com>:

> Does anyone have any sample typo script code that
> could lead me in the right direction as I am not a
> very familiar with typescript but very good with html
> and css.
>
> I have a html TemplaVolia layout that has 2 columns:
> The first column (col1) will change its content based
> on a specific website section from my websites pages
> architecture.
> The second column (col2) will change consistently on a
> web page by web page basis – (main-page) as it holds
> the website content.
>
> My intensions for (col1) will be to have a TemplaVolia
> reference specific uid contents based on what section
> of the website the user it located.
>
> I have a sample code that works for one UID but I do
> not know how to make it conditional – whether by using
> a if statement or a case statement.
>
> Sample Code (just works for one specific uid):
> lib.newsarticles  = CONTENT
> lib.newsarticles  {
>   tables = tt_content
>   select.orderBy = sorting
>   select.pidInList = 52
>   select.uidInList = 78
> }
> lib.newsarticles= RECORDS
> lib.newsarticles.source.current=1
> lib.newsarticles.tables = tt_content
> lib.newsarticles = CONTENT
> lib.newsarticles {
>  table = tt_content
>  select.orderBy = sorting
>  select.pidInList = 52
>  select.uidInList = 78
> }
> Sample Website Architecture:
> Section1
>   --- web page 1
>   --- web page 2
> Section2
>   --- web page 1
>   --- web page 2
> Section3
>   --- web page 1
>   --- web page 2
> Section4
>   --- web page 1
>   --- web page 3
>
>
> My system:
> typo3 4- final
> templavolia 1.0.1
> php 5.1.2
> mysql 4
>
> Please help - thank You



More information about the TYPO3-project-templavoila mailing list