PDA

View Full Version : Adding an Anchor to a Fragment ...


simonwar
08-May-2007, 07:04 PM
Can this be done?

I am pulling together a brochure page made up a several fragments. I was wondering if i could begin with a navigating fragment to jump to anchor's on the subsequent fragments on the same page

</a><a href="#sect1">Section 1</a>
</a><a href="#sect2">Section 2</a>

and so on through later sections which have the details in Fragments?

I noticed NETQUOTEVAR:FRAGMENTANCHOR but not sure how to use it ?

Thanks, Simon.

Duncan Rounding
08-May-2007, 09:00 PM
Your code shown above should work ok.

Not sure how to use that NQV - but I think you could test it quite easily - just add some obscure word into a fragment and make sure the fragment text is seletced to be added to the search index. Then do a search in the site for that word and look at the returned link in the search results.

leehack
08-May-2007, 10:06 PM
</a><a href="#sect1">Section 1</a>
</a><a href="#sect2">Section 2</a>

If im coding for internal anchors on a page, i put:

<a name="AAAA" id="AAAA"></a>

where i want the link to go to, and then link to it via:

<a href="#AAAA">blah blah here</a>

You also have 2 </a>'s at the start of each line, what are these for?

simonwar
09-May-2007, 06:19 AM
You also have 2 </a>'s at the start of each line, what are these for?

Aye! .... bad Copy and Pasting... there's no<a/> at the front.

Q. How do ID the Fragment from Actinic?

I cannot seem to find a checkbox/text field to ID them?

I was thinking of dropping the anchor ID into the description box inside the !!< >!! but will mean i jump passed the title, which will confuse the user?

Any ideas?

leehack
09-May-2007, 01:55 PM
Try embedding it within its own embedding tags at the end of the title, it should be invisible anyway.

NormanRouxel
09-May-2007, 02:16 PM
If your fragments all have different Titles, then you could add

<a name="NETQUOTEVAR:BROCHURE_TITLE"></a>

to your Fragment Layout. And link to them at the top.

Best to use plain text titles without special charcters.