cms_selflink in footer?
Posted: Wed Jun 07, 2006 9:47 am
Hi,
Busy setting up a site with 0.12.2 multilingual from katon (well done btw) and use my own footer tag to allow different languages. Do not yet use pretty urls, so all urls are 'nasty' looking like www.domain.tld/index.php?page=home&lan=en for now.
I want to use links in the footer like 'contact', 'legal', 'sitemap' etc. These of course need to be generated in accordance with cmsms settings, so wanted to use the cms_selflink in the footer but that does not work.
in my footer tag I have something like this: Sitemap; when the page including footer is displayed this comes out as www.domain.tld/={cms_selflink href='sitemap'}, which is clearly not what I want.
Anyone a suggestion how to do this? Would like to keep on using my footer tag; I know that coding it into the content or template page probably will work as expected, but want to avoid that if possible.
BTW this is my {multilingual_vt_footer} tag code (simplified):
$l=$_GET['lan'];
switch ($l):
case 'nl':
echo 'Nederlands | Sitemap';
break;
case 'en':
echo 'Engels | Sitemap';
break;
default:
echo 'Default | Sitemap';
endswitch;
which gets inserted in the template as such:
{multilingual_vt_footer}
Busy setting up a site with 0.12.2 multilingual from katon (well done btw) and use my own footer tag to allow different languages. Do not yet use pretty urls, so all urls are 'nasty' looking like www.domain.tld/index.php?page=home&lan=en for now.
I want to use links in the footer like 'contact', 'legal', 'sitemap' etc. These of course need to be generated in accordance with cmsms settings, so wanted to use the cms_selflink in the footer but that does not work.
in my footer tag I have something like this: Sitemap; when the page including footer is displayed this comes out as www.domain.tld/={cms_selflink href='sitemap'}, which is clearly not what I want.
Anyone a suggestion how to do this? Would like to keep on using my footer tag; I know that coding it into the content or template page probably will work as expected, but want to avoid that if possible.
BTW this is my {multilingual_vt_footer} tag code (simplified):
$l=$_GET['lan'];
switch ($l):
case 'nl':
echo 'Nederlands | Sitemap';
break;
case 'en':
echo 'Engels | Sitemap';
break;
default:
echo 'Default | Sitemap';
endswitch;
which gets inserted in the template as such:
{multilingual_vt_footer}