Im tpl des Moduls setzen mit: {set scope=global $persistent_variable=hash( 'javascript', array('jquery-easing-1.3.pack.js', 'jquery-easing-compatibility.1.2.pack.js', 'coda-slider.1.1.1.pack.js'),
Im tpl des Moduls setzen mit:
{set scope=global $persistent_variable=hash( 'javascript', array('jquery-easing-1.3.pack.js',
'jquery-easing-compatibility.1.2.pack.js',
'coda-slider.1.1.1.pack.js'),
'css', 'cslider_styles.css' )}
In der pagelayout.tpl wieder auslesen:
{if and(is_set($module_result.content_info.persistent_variable['javascript']), gt($module_result.content_info.persistent_variable['javascript']|count, 0))}
{foreach $module_result.content_info.persistent_variable['javascript'] as $script}
<script type="text/javascript" src="/js/{$script}"></script>
{/foreach}
{/if}
{if and(is_set($module_result.content_info.persistent_variable['css']), gt($module_result.content_info.persistent_variable['css']|count_chars(),0))}
<link rel="stylesheet" type="text/css" href="/design/plain_site/stylesheets/{$module_result.content_info.persistent_variable['css']}" />
{/if}
Hier wird nur ein css-Filename übergeben, man könnte es natürlich auch als array setzen/auslesen.