Page 1 of 1

[SOLVED] selflink with image

Posted: Mon Mar 10, 2008 11:50 am
by volcanoboy
Hi,

would it be possible to make a link like {cms_selflink dir="previous" label="Previous page: "} only with an image.
i have a small arrow gif i'd like to use for this purpose. If not an image would it be possible to do with just a >>> or simmilar?

Re: selflink with image

Posted: Mon Mar 10, 2008 12:33 pm
by 10010110
It’s all explained in the “Tags” section of your admin panel ("Extensions > Tags > cms_selflink").

You have two options: Create a regular link and put the selflink in the href as reference only

Code: Select all

<a href="{cms_selflink href='page'}"><img src="…" /></a>
Or you can actually create an image link:

Code: Select all

{cms_selflink dir="next" image="next.png" text="Next" imageonly="1"}
And if you want arrows as text replacement you can use HTML entities. Either > (= greater than ">") or < (= lower than "<"), or »/ (= right (single) angle quote "»") or «/ (= left (single) angle quote "«") – although these are actually quotes and it would probably be semantically incorrect to use them as arrows.

Re: selflink with image

Posted: Mon Mar 10, 2008 2:56 pm
by volcanoboy
ah..thanks alot. This did exactly what i needed  :)

Code: Select all

{cms_selflink dir="next" image="uploads/myimage.gif" text="Next" lang="0" imageonly="1"}