[SOLVED] selflink with image

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
volcanoboy

[SOLVED] selflink with image

Post 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?
Last edited by volcanoboy on Mon Mar 10, 2008 2:56 pm, edited 1 time in total.
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Re: selflink with image

Post 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.
Last edited by 10010110 on Mon Mar 10, 2008 12:35 pm, edited 1 time in total.
volcanoboy

Re: selflink with image

Post 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"}
Locked

Return to “CMSMS Core”