Go To Mark          
  
   
 


See: MarkPage

Parameters

  • pageName = The name of the page to go to (optional default = current page)
  • name = The name of the mark to scroll to
  • text = The text to display on the link

Usage:

[{GoToMark pageName="/OpenForum/Extensions/MarkPage" name="TestMark" text="Goto the test mark on the page MarkPage"}] Goto the test mark on the page MarkPage


renderer.sjstargetPageName = extension.getAttributeValueByName("pageName"); if(targetPageName ==null) { targetPageName = "/"+pageName; } name = extension.getAttributeValueByName("name"); text = extension.getAttributeValueByName("text"); return "<a href=\""+targetPageName+"#"+name+"\">"+text+"</a>";
by Anon on 21/04/2008 at 10:09 PM