Pretty ?... I am not using pretty urlsMaybe it's due to internal pretty urls turned on.. don't know.

Code: Select all
{foreach from=$entry->categories item='one_category'}
{capture assign='urlparam'}?&category={$one_category.name}{/capture}
{cms_selflink page='dynamic_categories' urlparam=$urlparam text=$one_category.name}<br/>
{/foreach}
It is not mandatory. Variable "$pagealias" outputs alias of the same page it is placed on (that is "dynamic_categories").Also, I'm not sure why do you use l 'detailpage=$pagealias' - is this mandatory or not?