History: PluginAlink
Source of version: 29 (current)
Copy to clipboard
{syntax type="markdown" editor="wysiwyg"} # Plugin A Link {ANAME()}top{ANAME}This ((wiki plugin)), available since Tiki1, creates a link to an anchor in a wiki page. Use in conjunction with ((PluginAname)), which creates the anchor, or link to a wiki heading. {REMARKSBOX(title="Note" type="tip")}Starting with ((Tiki2)), Tiki automatically creates an anchor for each wiki heading. You can use the ((PluginAlink)) to link to any heading on a wiki page *without having to use a corresponding ((PluginAname))*.{REMARKSBOX} ## Parameters {pluginmanager plugin="alink"} ## Example ### Aname Plugin Usage `~np~{ANAME()}~/np~` `anchorname` {HTML()}<span style="color:#FF0000"><--put the name of the anchor here. Use this same name for the aname= parameter in the Plugin Alink (see just below).</span>{HTML} `~np~{ANAME}~/np~` ANAME example: `~np~{ANAME()}anchorname{ANAME}~/np~` ### Alink Plugin Usage `~np~{ALINK(~/np~` `aname=anchorname` {HTML()}<span style="color:#FF0000"><-- put here the name of the anchor you created using the Plugin Aname!</span>{HTML} `~np~)}~/np~` `link text` {HTML()}<span style="color:#FF0000"><-- put here the text to appear as the link.</span>{HTML} `~np~{ALINK}~/np~` ALINK example: `~np~{ALINK(aname=anchorname)}link text{ALINK}~/np~` ## Demonstration To jump down to the anchor at the bottom of the page click **{ALINK(aname=myanchor)}HERE{ALINK}.** <-- Here is where I put the `ALINK` plugin in this page. <br />. . . . . . . . . . . . . . . . Here is a second {ALINK(aname=myanchor)}link{ALINK} to the same anchor at the bottom of the page. Again, I used the `ALINK` plugin. . . . . . . . . . . . . . . . . . . . . . . . . . {ANAME()}myanchor{ANAME}**The anchor is here.** <-- I put the `ANAME` plugin at the beginning of this line. Now you can click <strong>{ALINK(aname=top)}HERE{ALINK} to jump to the anchor I put at the top of the page (you can't see where that one is unless you look into the page editor 😀) ## Related Pages - ((PluginAname)) - ((tw:PluginA)) as an alternative to ANAME/ALINK