Monday 19 June 2006 11:00:33 pm
You can set a view parameter for each tab like so:
<ul>
<li id="tab1"><a href={'/my_url/(theme)/green'|ezurl()}>My page</a></li>
<li id="tab2"><a href={'/my_url/(theme)/orange'|ezurl()}>My page</a></li>
....
</ul>
Then, in your page layout you can check the view parameter:
{def $stylesheet='default.css'}
{if is_set( $module_result.view_parameters[theme] )}
{set $stylesheet=concat( $module_result.view_parameters[theme], '.css' )}
{/if}
<link rel="stylesheet" type="text/css" href={ concat( 'stylesheets', $stylesheet )|ezdesign() }
There are probably better ways to do it too, but this is one way to do it.
|