cms_selflink anchors

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm
Location: behind my desk

cms_selflink anchors

Post by petert »

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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: cms_selflink anchors

Post by Ted »

Thanks for that.  It's in svn.
cdstg

Re: cms_selflink anchors

Post by cdstg »

seems that this bit of code fell out of 0.13 at about line 247
as the other anchor links only works for the page that you are working on not for an other internal page
Post Reply

Return to “Modules/Add-Ons”