The official extension repository only consists of freely available extensions. In the future only security reviewed extensions will be displayed. More information about reviews and disclaimer. New documentation is rendered once a day.

The following extension versions depend on this extension:
| Filename | Size | View | Date | Download |
|---|---|---|---|---|
| class.ext_update.php | 12.3 K | View | 04.04.2008 | Download |
| class.tx_cssselect_handlestylesheets.php | 7.2 K | View | 05.04.2008 | Download |
| ext_conf_template.txt | 454 | View | 03.04.2008 | Download |
| ext_icon.gif | 239 | View | 10.07.2007 | Download |
| ext_localconf.php | 439 | View | 03.04.2008 | Download |
| ext_tables.php | 2.2 K | View | 03.04.2008 | Download |
| ext_tables.sql | 166 | View | 03.04.2008 | Download |
| locallang_db.xml | 1.3 K | View | 03.04.2008 | Download |
| doc/manual.sxw | 178 K | 02.05.2008 | Download | |
| pi1/class.tx_cssselect_pi1.php | 12.7 K | View | 02.05.2008 | Download |
| res/css.gif | 614 | View | 03.04.2008 | Download |
| static/constants.txt | 2.1 K | View | 03.04.2008 | Download |
| static/setup.txt | 1.8 K | View | 31.03.2008 | Download |
<?php
// Checks the TYPO3 context
if( !defined( 'TYPO3_MODE' ) ) {
// TYPO3 context cannot be guessed
die( 'Access denied.' );
}
// Checks if we are in a backend context
if( TYPO3_MODE == 'BE' ) {
// Includes the PHP class to handle the CSS files
include_once( t3lib_extMgm::extPath( 'css_select' ) . 'class.tx_cssselect_handlestylesheets.php' );
}
// Temporary TCA
$tempColumns = array(
'tx_cssselect_stylesheets' => array(
'exclude' => 1,
'label' => 'LLL:EXT:css_select/locallang_db.php:pages.tx_cssselect_stylesheets',
'config' => array(
'type' => 'select',
'items' => array(),
'itemsProcFunc' => 'tx_cssselect_handleStylesheets->main',
'size' => 10,
'maxitems' => 10,
'iconsInOptionTags' => true
)
),
'tx_cssselect_inheritance' => array(
'exclude' => 1,
'label' => 'LLL:EXT:css_select/locallang_db.php:pages.tx_cssselect_inheritance',
'config' => array(
'type' => 'select',
'items' => array(
array(
'LLL:EXT:css_select/locallang_db.php:pages.tx_cssselect_inheritance.I.0',
0
),
array(
'LLL:EXT:css_select/locallang_db.php:pages.tx_cssselect_inheritance.I.1',
1
),
array(
'LLL:EXT:css_select/locallang_db.php:pages.tx_cssselect_inheritance.I.2',
2
)
),
'size' => 1,
'maxitems' => 1
)
)
);
// Load the TCA for the 'pages' table
t3lib_div::loadTCA( 'pages' );
// Adds the fields to the 'pages' TCA
t3lib_extMgm::addTCAcolumns( 'pages', $tempColumns, 1 );
// Adds the fields to all types of the 'pages' table
t3lib_extMgm::addToAllTCAtypes( 'pages', 'tx_cssselect_stylesheets;;;;1-1-1, tx_cssselect_inheritance' );
// Adds the static TS template
t3lib_extMgm::addStaticFile( $_EXTKEY, 'static/', 'Page StyleSheet Selector' );
// Unsets the temporary variables to clean up the global space
unset( $tempColumns );
?>