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

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
comfixit

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

Post 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.
Last edited by comfixit on Wed Dec 26, 2007 10:11 pm, edited 1 time in total.
alby

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

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

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

There is also the selflink tag which has parameters which are explained like modules...

Extensions > Tags > selflink...
alby

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

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

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

Post by comfixit »

Excellent.

Thank you all for the help.
Locked

Return to “CMSMS Core”