Asign a cms selflink to an image
Asign a cms selflink to an image
Hi
Can anyone tell me how to assign a cms selflink to an image please ?
Can anyone tell me how to assign a cms selflink to an image please ?
Re: Asign a cms selflink to an image
Extensions > Tagspandaman wrote: Can anyone tell me how to assign a cms selflink to an image please ?
Help of cms_selflink:
Alby# (optional) image - A url of an image to use in the link. Example: {cms_selflink dir="next" image="next.png" text="Next"}
# (optional) alt - Alternative text to be used with image (alt="" will be used if no alt parameter is given).
# (optional) imageonly - If using an image, whether to suppress display of text links. If you want no text in the link at all, also set lang=0 to suppress the label. Example: {cms_selflink dir="next" image="next.png" text="Next" imageonly=1}
Re: Asign a cms selflink to an image
Thank you
What is the code to resize the image within this tag ?
What is the code to resize the image within this tag ?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Asign a cms selflink to an image
The other way is :
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Asign a cms selflink to an image
want to assign a cms selflink to an image, using a nice css-driven rollover effect ?
Thanx to the last reply by calguy2000, I found out the one missing thing I was needing.
So how to do it ?
the xhtml part :
you don't need to put the image link here, it's defined in the css.
this is the css part :
To avoid too much loading time when rollover, there's only one image with two parts, positioned to be viewed at the normal state and at the rollover one.
example :

top of the image is used when rollover.
More info :
original technique from http://wellstyled.com/css-nopreload-rollovers.html, french tuto : http://css.alsacreations.com/Tutoriels-et-articles-divers/roll-over-css-image-unique
Thanx to the last reply by calguy2000, I found out the one missing thing I was needing.
So how to do it ?
the xhtml part :
Code: Select all
<a href="{cms_selflink href="name-of-the-page"}" title="title-you-want" id="imagelink"></a>
this is the css part :
Code: Select all
a#imagelink {
background: transparent url(images/nameoftheimg.jpg) no-repeat 0 -65px;
display: block;
height: 65px;
width: 65px;
}
a:hover#imagelink {
background: transparent url(images/nameoftheimg.jpg) no-repeat 0 0;
}
example :

top of the image is used when rollover.
More info :
original technique from http://wellstyled.com/css-nopreload-rollovers.html, french tuto : http://css.alsacreations.com/Tutoriels-et-articles-divers/roll-over-css-image-unique
Last edited by Franck on Mon Sep 15, 2008 4:50 pm, edited 1 time in total.
[SOLVED] Asign a cms selflink to an image
When I try Calguys method:
using TinyMCE in a global content block, it breaks the link.
When I re-open the HTML window it has turned the href to this:
Anybody got a fix for this?
Thanks
Simon66
using TinyMCE in a global content block, it breaks the link.
When I re-open the HTML window it has turned the href to this:
Anybody got a fix for this?
Thanks
Simon66
Last edited by Simon66 on Sun Jun 21, 2009 10:29 pm, edited 1 time in total.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.
Re: Asign a cms selflink to an image
Is missing a quoteSimon66 wrote: Anybody got a fix for this?
Alby
Re: Asign a cms selflink to an image
Alby
I tried it with the missing quote mark
and got the same results:
Simon
I tried it with the missing quote mark
and got the same results:
Simon
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.
Re: Asign a cms selflink to an image
You can't use quotes inside quotes. Try:Simon66 wrote: Alby
I tried it with the missing quote mark
and got the same results:
Simon
Code: Select all
<a href="{cms_selflink href='somepage'}"><img src="uploads/myimage.jpg" width="100"/></a>
Re: Asign a cms selflink to an image
Thanks!
Works perfectly.
Simon
Works perfectly.
Simon
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.
This must be Thursday. I never could get the hang of Thursdays.
Douglas Adams - The only sane person in the asylum.