space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

space

Installing the Linguist Plugin

initial Site Structure

Linguist Plugin Configuration

linguist User Preferences

How linguist Plugin changes Manila behaviour

Using nTuples

linguist.Macros

Navigation

references

Manila

Patches

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

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.

  • lineText - the body of the anchor
  • language - the language code of the story to link ot
  • whatTarget - optional target attribute of a tag
  • anchor - optional, a named anchor on page to link to
  • class - optional class attribute of the a tag
  • onclick - optional onlick attribute of the a tag
  • onmouseover - optional onmouseover attribute of the a tag
  • onmouseout - optional onmouseout attribute of the a tag

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;")}