Page 1 of 1

{cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:02 pm
by wms
Hi,

How would you use the "cms_selflink page" tag for an image link?

Thanks,

Re: {cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:10 pm
by jelle
Not?
Images live in /uploads/images or whereever you have configured them to reside. Why would you need a selflink for them?

Re: {cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:18 pm
by wms
I want to 'hyperlink' to a page when I click on an image:

For example: would bring me to the homepage. 

I could put this in the source {cms_selflink page="Home_Page"} to link within CMSMS.  But, I want to know how to wrap an image around that 'cms_selflink' tag?

Does that make sense, or is it just again? :P

Re: {cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:36 pm
by jelle
Aha, you want the link to be an image instead of a text.
from the help text:(optional) href - If href is used only the href value is generated (no other parameters possible). Example:
but maybe putting the <img tag in the text will work too, but be sure to use the correct quoting.

Re: {cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:46 pm
by wms
I'm real sorry, I don't understand what you mean?

When I put: , I get this in the address bar of my browser: /%7Bcms_selflink%20href= or some other messed up thing.

After you save the page with the above mentioned anchor tag, it converts it into: or some other messed up thing.

???

Re: {cms_selflink page="Page Alais"} question

Posted: Wed Mar 08, 2006 4:57 pm
by jelle
ah I see, i read that on svntest, so it will probably be in the next release, but it's not in beta2.
You will have to try the second method, put the img tag in the text='' Or maybe skip the quotes altogether.