[TYPO3-dev] Default TS in ex_lockalconf.php

Tapio Markula tapio.markula at dnainternet.net
Sun Aug 6 17:45:22 CEST 2006


Hi

There has been discussion about how to define TypoScript
settings for extension.

My idea was to make a switch, which could
possiblitity to use static template using
a switch in ext_tables.php
and ext_localconf.php

but I didn't get neither of the possibilities to work.


if($_EXTCONF['enable.']['more_columns'])	
	t3lib_extMgm::addStaticFile($_EXTKEY,'pi1/static/more_columns/','More 
columns');

that didn't work - the static template didn't work either before or 
after css_styled_content

I tried to
define certain conditional TS in ext_localconf.php

if ($_EXTCONF['enable.']['more_columns']) {	
	t3lib_extMgm::addUserTSConfig('

...
but hat didn't work either

TS should be placed on the top of basis templates

There was discussion about 'addPItoST43' function, which relates with
predefined TS for content or css_styled_content

t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_kbnescefe_pi1.php','_pi1','CType',1);
that seems to add php-file
I should add the following TS using

if ($_EXTCONF['enable.']['more_columns'])
(
someCoreFunction(...


###########################################################
# Initialise extra contents - start
###########################################################

# get content, header
styles.content.getHeader < styles.content.get
styles.content.getHeader.select.where = colPos=4
...

###########################################################
# Initialise extra contents - end
###########################################################

###########################################################
# Initialise the Shared Content - start
###########################################################

styles.content.getShared < styles.content.get
styles.content.getShared.select {
    pidInList = {$pidSharedContent}
}
...
}
###########################################################
# Initialise the Shared Content - end
###########################################################


...);





More information about the TYPO3-dev mailing list