{cms_selflink page="Page Alais"} question

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.
Post Reply
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

{cms_selflink page="Page Alais"} question

Post by wms »

Hi,

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

Thanks,
jelle

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

Post by jelle »

Not?
Images live in /uploads/images or whereever you have configured them to reside. Why would you need a selflink for them?
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

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

Post 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
jelle

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

Post 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.
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm

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

Post 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.

???
jelle

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

Post 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.
Post Reply

Return to “CMSMS Core”