Hi!
Thank you for your answer! I tried your method and I think I understood but it doesn't work until now...
I explain what I did (using an example to be as clear as possible):
1 - creation of style_color.ini files in the lib/tpl/mytemplate folder.
I created one for each section : style_red.ini, style_green.ini and style_blue.ini.
I added one file, called style_default.ini for the root and playground namespace.
2 - modification of the lib/tpl/steynard/main.php file.
I added $color as an argument for the function tpl_metaheaders (tpl_metaheaders($color)).
I added a switch before the tpl_metaheaders($color) line to affect a value to $color like this :
<?php
switch(getNS($ID)){
case 'redsection':
$color='_red';
break;
case 'greensection':
$color='_green';
break;
case 'bluesection':
$color='_blue';
break;
default:
$color='_default';
}
?>
3 - modification of the inc/template.php file.
I replaced the line :
$head['link'][] = array('rel'=>'stylesheet', 'media'=>'screen', 'type'=>'text/css',
'href'=>DOKU_BASE.'lib/exe/css.php');
with this one :
$head['link'][] = array('rel'=>'stylesheet', 'media'=>'screen', 'type'=>'text/css',
'href'=>DOKU_BASE.'lib/exe/css.php?color='.$color);
4 - modification of the lib/exe/css.php file.
I replaced 'style.ini' by 'style'.$color.'.ini' in the functions css_out, css_applystyle and css_cacheok.
That's all I did until now.
Now, when I try to get my home page, I obtain the content but without any css files applied.
I checked (using <?php echo "$color" ?>) if the $color variable contains the right value and it's ok.
What do you think I missed?
Thank you for your help !