Using cms_selflink anchorlinks with pages not in menu
Posted: Tue Jul 11, 2006 5:22 pm
I needed a way to use cms_selflink anchors on the same page, but with pages not in menu (like disclaimer and sitemap; these are linked via footer, not menu), but found that it was not "allowed" with the default code of function.cms_selflink.php. This is what worked for me:
Around line 204 change
into
Hope it helps somebody.
BTW why disallow this in the first place? With the Active setting one controls if one wants to use that page or not, or am I missing something?
Around line 204 change
Code: Select all
if ($content->Active() && $content->ShowInMenu() && $content->HasUsableLink())
Code: Select all
if ($content->Active() && $content->HasUsableLink())
BTW why disallow this in the first place? With the Active setting one controls if one wants to use that page or not, or am I missing something?