Page 1 of 1

Targetting an id on another page [solved]

Posted: Fri Jul 31, 2015 11:57 am
by babel
I'm trying to link from one page to another pages id. Like this

Code: Select all

:<a href="{cms_selflink href='organisaties' anchorlink="vervolg_1" }">meer lezen</a>
. It works untill I press the send-button. The code diasappears. I know using href only the href value is generated. I tried 'organisaties#vervolg_1 with no succes.
Does anyone know a way to solve this.

Re: Targetting an id on another page

Posted: Fri Jul 31, 2015 12:31 pm
by JohnnyB
According to the Tag's help, this probably won't work.
href="" is used alone
anchorlink="" requires dir="anchor" to be set and is (if I understand correctly) used for an anchor on the same page.

In your situation, can you possibly do something like
<a href="/New-Page#Your-Anchor">Link Text</a> ?

OR

{cms_selflink href="New-Page#Your-Anchor"} ?

Re: Targetting an id on another page [solved]

Posted: Sat Aug 01, 2015 8:18 am
by babel
Thanks JohnnyB. It works without using cms_link but the "traditional" way <a href="/New-Page#Your-Anchor">Link Text</a>. Strange, because in my mind cms ms needs cms_link for internal links. Thanks a lot for your help.

Re: Targetting an id on another page

Posted: Sat Aug 01, 2015 2:59 pm
by calguy1000

Code: Select all

<a href="{cms_selflink href='page_alias'}#the_id">foo</a>