Page 1 of 1

How do you link to another page based on the alias? [solved]

Posted: Tue Dec 25, 2007 11:22 pm
by comfixit
Newbie question.

Figured out most of what I need to know from the documentation, experimentation and searching the forum, but this simple question has me stumped.

Say I have a page with the alias of "Home" what tag would I put in the page to link to that page?

I used the link command in the WYSIWYG editor but it seems to refer to the link by ID# rather then alias.

Thanks in advance for the help.

Re: How do you link to another page based on the alias?

Posted: Tue Dec 25, 2007 11:32 pm
by alby
comfixit wrote: I used the link command in the WYSIWYG editor but it seems to refer to the link by ID# rather then alias.
IMHO:
Orange palm (internal link) in TinyMCE is based on alias

Alby

Re: How do you link to another page based on the alias?

Posted: Tue Dec 25, 2007 11:53 pm
by comfixit
I am using the latest version and when I click on the orange palm tree and select my Home page it inserts the following:

Code: Select all

{cms_selflink page='52'}
My guess is that I could probably replace page with alias or something and then insert the alias in single quotes....but I am not quite that adventurous.

Re: How do you link to another page based on the alias?

Posted: Wed Dec 26, 2007 6:23 am
by Dr.CSS
There is also the selflink tag which has parameters which are explained like modules...

Extensions > Tags > selflink...

Re: How do you link to another page based on the alias?

Posted: Wed Dec 26, 2007 9:59 am
by alby
comfixit wrote:

Code: Select all

{cms_selflink page='52'}
As mark said, if you see the help:
page - Page ID or alias to link to
page='52' or page='Home' is same

Alby

Re: How do you link to another page based on the alias?

Posted: Wed Dec 26, 2007 10:10 pm
by comfixit
Excellent.

Thank you all for the help.