Richard,
I tried your suggestion but I'm having some trouble with it. Following is my
code
<!IoRangeDynLink>
<a
href="<%anc_ACalender_Links%><!IoRangeConditional>#<%stf_TargetPageBookmark%><!/IoRangeConditional>"><%stf_AnchorText%></a>
<!IoRangeRedDotEditOnly>
<br />
<!IoRedDot_anc_ACalender_Links>[Edit
Link]
<!IoRedDot_stf_TargetPageBookmark>[Edit
Bookmark
Target]
<!IoRedDot_stf_AnchorText>[Edit Link
Text]
<!/IoRangeRedDotEditOnly>
<!/IoRangeDynLink>
Now every time I create a new link and add the Text for that link, it
overwrites the link text for all previous links. What am I doing wrong ? Also,
is there a way to get a list of all bookmarks in the page ?
________________________________
From: Richard Hauer (5 Limes) <[email protected]>
To: RedDot CMS Users <[email protected]>
Sent: Fri, October 30, 2009 5:33:57 AM
Subject: Re: Linking to an anchor in another page
Hi Arsalan,
You can't do that if you are simply connecting a page against your
link unless you check the "insert path and filename only" option for
your anchor placeholder. In which case you can put whatever you want
into your anchor tag (or even use an option list if you happen to know
all the jump marks in advance).
eg.
<a href="<%anc_MyDynamicAnchorWithPathAndFilenameSet%>#<
%stf_TargetPageBookmark%>"><%stf_AncorText%></a>
That way your authors can set the bookmark too. You will have to put
the edit dots somewhere out of the link though, and you may consider
using Conditional tags around the whole bookmark section so if there's
no bookmark set the "#" is excluded from the URL - though there's no
semantic difference.
Thinking about how the target page is only assembled at run time (and
preview) it's not sensible to attempt to "guess" or "figure out" what
bookmarks might exist on the target page - best just leave it up to
the authors. Of course, if you did know what they were you could use
an option list in place of the standard field like I said before.
HTH.
Regards,
Richard Hauer
====================
5 Limes Pty Limited
www.5Limes.com.au
On Oct 30, 4:19 am, Arsalan <[email protected]> wrote:
> Is it possible to link to a particular anchor in another page using jump
> marks ?
>
> For example,
>
> testpage.asp#link1
>
> testpage.asp#link2
>
> How do I achieve this with dynamic links (or text editor)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en
-~----------~----~----~----~------~----~------~--~---