[Typo3] Using TSconfig to change colPos_list based on page layout

Yomo Guiamo yguiamo at gmail.com
Fri Jun 24 00:32:33 CEST 2005


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
> 



More information about the TYPO3-english mailing list