[TYPO3-UG Freiburg] eigene Icons im Seitenbaum war: [Fwd: Re: [TYPO3-dev] SysFolder, Contains Plugin, $ICON_TYPES]

Steffen Müller typo3 at t3node.com
Sat Apr 4 13:51:33 CEST 2009


wie gestern besprochen, hier die Vorgehensweise, wie man zusätzliche
Icons im Seitenbaum verfügbar macht (uns im TS filtert)


TYPO3 Blog: http://www.t3node.com/

-------- Original-Nachricht --------
Betreff: Re: [TYPO3-dev] SysFolder, Contains Plugin, $ICON_TYPES
Datum: Thu, 08 Jan 2009 23:02:35 +0100
Von: Steffen Kamper <info at sk-typo3.de>
Newsgruppen: typo3.dev
Referenzen: <mailman.1.1230803623.20581.typo3-dev at lists.netfielders.de>
<mailman.1.1231438280.26400.typo3-dev at lists.netfielders.de>


Patrick Gaumond schrieb:

there is no need for an extension.

Here a simple example:
* create folder fileadmin/pageicons
* place any icons in there (i took 5 from famfam)
* add following code to your extTables.php:

$TCA['pages']['columns']['module']['config']['items'][] =
array('Pagetype 1', 'pagetype1',
$TCA['pages']['columns']['module']['config']['items'][] =
array('Pagetype 2', 'pagetype2',
$TCA['pages']['columns']['module']['config']['items'][] =
array('Pagetype 3', 'pagetype3',
$TCA['pages']['columns']['module']['config']['items'][] =
array('Pagetype 4', 'pagetype4',
$TCA['pages']['columns']['module']['config']['items'][] =
array('Pagetype 5', 'pagetype5',

$ICON_TYPES['pagetype1']['icon'] =
$ICON_TYPES['pagetype2']['icon'] =
$ICON_TYPES['pagetype3']['icon'] =
$ICON_TYPES['pagetype4']['icon'] =
$ICON_TYPES['pagetype5']['icon'] =

Now you can mark every page with the icon you select in "Contains
plugin" (fieldname is module)

You can use this eg to make a condition in TS:
[globalVar = TSFE:page|module = pagetype1]
tt_content.stdWrap.postCObject = TEXT
tt_content.stdWrap.postCObject.value = this is Pagetype 1
tt_content.stdWrap.postCObject.wrap = <p><em>|</em></p>

you also can use it in an if-object of any TS-object.
There is no limitation, you get a colored backend very soon :-)

vg Steffen

More information about the TYPO3-UG-Freiburg mailing list