Targetting an id on another page [solved]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Targetting an id on another page [solved]

Post 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.
Last edited by babel on Thu Oct 22, 2015 7:33 pm, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Targetting an id on another page

Post 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"} ?
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Targetting an id on another page [solved]

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Targetting an id on another page

Post by calguy1000 »

Code: Select all

<a href="{cms_selflink href='page_alias'}#the_id">foo</a>
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “The Lounge”