Post
by petert » Mon Aug 15, 2005 10:53 am
Please extend the code for cms_selflink with the following in order to be able to use anchors:
around line 126 in lib/function.cms_selflink.php
Code: Select all
if ($url != "") {
$result = "";
if (isset($params['anchor'])) {
$anchor .= '#'.$params['anchor'];
}
$result .= $label.'<a href="'.$url.$anchor.'"';
That way you can use an anchor variable for the selflink, very handy.
Example:
Code: Select all
{cms_selflink page="4" text='lees meer' anchor='wensen'}
Last edited by
petert on Mon Aug 15, 2005 10:55 am, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!
CMSMS rules!