I'm having trouble posting - sorry if this is a duplicate!!!!
Try using the anchor or cms_selflink tag - see Extensions, Tags.
Keep in mind that if you just use it will reference the root of the CMSMS install. So you have to reference the page you are on. You can hard code the page so it is like
you might be able to use {$page_id}:: but if the page is a child of a parent page, the parent page will not be given. It will not generate "parent-page/child-page/#your-anchor"
Another approach, is to modify the User Defined Tag I posted for rel="canonical" links to get the current page, (
http://forum.cmsmadesimple.org/index.ph ... #msg146490)
name this UDT something something like CurrentPage:
Code: Select all
global $gCms;
if ($gCms->variables['page_name'] !='') {
$manager =& $gCms->GetHierarchyManager();
$node =& $manager->sureGetNodeByAlias($gCms->variables['page_id']);
$content =& $node->GetContent();
if (isset($content) && is_object($content))
{
if ($content->GetURL() != '')
{
echo $content->GetURL();
}
}
}
Then call it as part of your anchor
and the HTML generated will be
http://www.your-domain.com/your-page-alias/#your-anchor