Page 1 of 1
CMS Selflink
Posted: Mon Aug 01, 2005 2:12 am
by iNSiPiD
Hi guys,
What's the benefit of using the {cms_selflink} tag?
Will all instances of {cms_selflink page="foo"} be updated if I change the page's alias to bar?
Re: CMS Selflink
Posted: Mon Aug 01, 2005 2:37 am
by Ted
Nope.
The only real advantage is that it takes of looking for assume_mod_rewrite, config paths, etc.
Re: CMS Selflink
Posted: Wed Aug 03, 2005 11:54 pm
by iNSiPiD
Could we add a another real advantage?
How hard would it be to either automatically apply a class to the tag, or add a class paramter so that internal links can be styled differently?
Re: CMS Selflink
Posted: Thu Aug 04, 2005 3:09 pm
by Ted
Very easily. Can you submit a feature request so I don't forget?
Re: CMS Selflink
Posted: Thu Aug 04, 2005 11:43 pm
by iNSiPiD
Yes. And don't get upset now but...where, exactly, would I go to do this?
I'd always assumed there was an appropriate place for this sort of thing.
Re: CMS Selflink
Posted: Fri Aug 05, 2005 1:53 am
by Ted
http://bugs.cmsmadesimple.org
Same place that you would post bugs. One of the priorities is Feature Request.
Thanks!
Re: CMS Selflink
Posted: Fri Aug 05, 2005 2:43 am
by eokyere
what I did was add another option
hrefonly to the tag... then after line 55, when the url has been found you can do:
Code: Select all
if ($url != "") {
if (isset($params['hrefonly']))
return $url;
so it returns a raw href for you; from here u can do anything you want with it