Question
Is there any way to automatically generate the name a target header when creating a link to that header?
For example, I have a page, named MyPage, that contains a heading, named "Target Link.' In another page, I need to create a wiki-word link to 'Target Link' and display the topic name as the link. It appears that the only way to do this is to create a forced link:
[[Mypage#Target_Link][Target Link]]
However, if I change the name of the 'Target Link' header, I have to update all of the links I've created to it.
So here's my question: Is there a way to create a static anchor to a header and thereafter automatically generate the name of the header in the links to that header? For example, it would be great to have a variable that does this, like:
[[Mypage#Target_Link][%AutoHeader%]]
So, if I change the name of the 'Target Link' header to 'My Head,' the anchor is still valid and all of the link names are updated to 'My Head.'
Environment
--
GordonFurbush - 05 Jan 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This seems to be related to
MakeAnchorVariable.
--
PankajPant - 05 Jan 2006
What about creating a named anchor manually so that you don't have to rely on the name
that is automatically created by TML headlines.
#TargetLink
or
<a name="non-wikiword target link"></a>
--
MichaelDaum - 07 Mar 2006