|
Baylys Just practicing to pass the Turing test. |
||||||||||||||||||
|
linguist.Macros
linguistPI.crosslink Macro
linguistMacros.crossLink (lineText, language, whatTarget=nil, anchor=nil, class=nil)
Builds a link to a another langauge version of the current page story.
If for any reason the request doesn't make sense - the destination story doesn't exist or the current page isn't for a story in the language part of the site structure; crosslink simply returns an empty string.
Examples
{linguistMacros.crossLink ("English", "en")}
One common use might be to build an image link with pictureRef, using a flag image.
{linguistMacros.crossLink (pictureREf("English Flag"), "en", onmouseover:"dofancystuff('');return true;")}
|
|||||||||||||||||