cms_selflink return href
Posted: Wed Mar 27, 2013 12:37 pm
The cms_selflink tag offers the argument
href
to only return the href-value itself.
Unfortunately, this works only when specifying an page alias or id like:
I'd like to have always an option to only return the href value:
I'm in need of such a functionality, cause I always create image-links like that:
With the CSS class .next, I define a background-image.
For SEO, I'd like to have a text within the <a>-Tag. With cms_selflink as it is today, I can't do this, can I?
I would try to implement this myself. How can I contribute to core tags?
href
to only return the href-value itself.
Unfortunately, this works only when specifying an page alias or id like:
Code: Select all
{cms_selflink href='page-xyz'}
Code: Select all
{cms_selflink alias='page-xyz' returnhref='1'}
{cms_selflink dir='next' returnhref='1'}
Code: Select all
<a class="next" href="{cms_selflink dir='next' returnhref='1'}">
<span>NEXT</span></a>
Code: Select all
.next {display: block; width: 16px; height: 16px; background: url(next.jpg);}
.next span {display: none;}
I would try to implement this myself. How can I contribute to core tags?