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?
CMS Selflink
Re: CMS Selflink
Nope.
The only real advantage is that it takes of looking for assume_mod_rewrite, config paths, etc.
The only real advantage is that it takes of looking for assume_mod_rewrite, config paths, etc.
-
iNSiPiD
Re: CMS Selflink
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?
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
Very easily. Can you submit a feature request so I don't forget?
-
iNSiPiD
Re: CMS Selflink
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.
I'd always assumed there was an appropriate place for this sort of thing.
Re: CMS Selflink
http://bugs.cmsmadesimple.org
Same place that you would post bugs. One of the priorities is Feature Request.
Thanks!
Same place that you would post bugs. One of the priorities is Feature Request.
Thanks!
-
eokyere
Re: CMS Selflink
what I did was add another option hrefonly to the tag... then after line 55, when the url has been found you can do:
so it returns a raw href for you; from here u can do anything you want with it
Code: Select all
if ($url != "") {
if (isset($params['hrefonly']))
return $url;

