[Typo3] Using TSconfig to change colPos_list based on page layout
Joseph Mesterhazy
jmesterh at iastate.edu
Fri Jun 24 16:57:10 CEST 2005
Thanks, this is getting me closer, but what is the equivalent of
TSFE:page|layout for the page TSConfig in the backend? I tried
variations such as page:layout, etc. with no success. GP:id=xx did
work, so the extension is working, but I would like this code to be
dynamic so I don't have to keep a list of page ID's that use the
alternate templates.
Joe
On Jun 23, 2005, at 5:32 PM, Yomo Guiamo wrote:
> Take a look at the extension of Bernhard Kraft about conditional
> TSConfig: KB_Tsconfig. I use it also. Be aware that some of the
> conditional code only works in the Page TSConfig instead of the
> User TSConfig.
>
> Joseph Mesterhazy wrote:
>
>> Hello all,
>> I am trying to modify the colPos_list variable, based on the page
>> layout set in the page header. I have page layouts that do not
>> use some of the columns, so I would like those columns hidden in
>> the backend for pages that use those layouts.
>> I am looking for something like this to stick in the root
>> TSConfig, but this does not work:
>> # if we are using template 1, only show columns used by that
>> template when in the backend.
>> [globalVar = TSFE:page|layout = 1]
>> mod.SHARED.colPos_list=0,1
>> }
>> [end]
>> Any ideas on this?
>> Thanks,
>> Joe
>> --
>> Joe Mesterhazy
>> ECpE UNIX Administrator
>> 2101 Coover Hall, Iowa State University
>> Ames, IA 50011. (515) 294-7359
>> http://www.mesterhazy.net
>>
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
--
Joe Mesterhazy
ECpE UNIX Administrator
2101 Coover Hall, Iowa State University
Ames, IA 50011. (515) 294-7359
http://www.mesterhazy.net
More information about the TYPO3-english
mailing list