RocketTheme Joomla Templates
     
Home Joomla! TitleLink TitleLink documentation - Examples
TitleLink documentation - Examples PDF Print E-mail
Article Index
TitleLink documentation
Using TitleLink
TitleLink Syntax
TitleLink Examples
Selectors for search-<site>
All Pages

Examples

  1. {ln:<phrase>}
    reate simple hyperlink with "phrase" as displayed text
  2. {ln:nw:<phrase>}
    create the hyperlink, but with the attribute target="_blank" to open it in a new window
  3. {ln:<phrase> '<title>}
    like 1., but use "title" as displayed text.
  4. {ln:nw:<phrase> '<title>}
    like 3., but open the link in a new window
  5. {ln:search:<phrase>}
    create a link which leads to the site-internal search results for <phrase>
  6. {ln:google:<phrase> '<title>}
    create a link which leads to the google search for <phrase>
  7. {ln:http://www.eff.org 'Electronic Frontier Foundation}
    creats and external link to the electronic frontier foundation
  8. {ln:op:<phrase>}<img src="/image.gif"></a>
    create a hyperlinked image ("op" for "open", because it won't close "</a>" tag)
  9. {ln:<phrase> '<img src="/image.jpg" /> ''<tooltip text>}
    create a hyperlinked image, linked to <phrase>, and with <tooltip text> as tooltip
  10. {ln:css-mainlevel:<phrase>}
    create simple hyperlink with "phrase" as displayed text and "mainlevel" as css class
  11. {ln:search-icq:1234567}
    http://wwp.icq.com/1234567 (show site for the ICQ number 1234567)
  12. {ln:search-sourceforge:projects/dotplot/}
    http://sourceforge.net/projects/dotplot/
  13. {ln:limitstart-2:<phrase>}
    like 1., but goes to article page 2.

Calling TitleLink from your template

1. insert the following code at the end of your template index.php, before the last '?>'

/*
 * Helper function for TitleLink
 */
function execTitleLink($text)
{
  global $_MAMBOTS, $database, $mosConfig_live_site;
  include ("mambots/content/titlelink.php");
  // simulate Joomla parameter structure
  $mytemprow->text = $text;
  $mytempparams = "";
  botTitleLink(1, &$mytemprow, $mytempparams);
  return $mytemprow->text;
}

2. insert something like the following call wherever you want the link appear:

<?php echo execTitleLink("{ln:<phrase>}"); ?>

Feedback and Support

Tobias Gesellchen ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) is the main programmer.
Marc Perkel ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) is the documentation guy.
We welcome your ideas and feedback on the program. Please use the Tracker for feature suggestions or to submit bug reports.

License

The TitleLink content plugin is released under the GPL License.



Last Updated on Sunday, 24 August 2008 10:34
 

Silence

more info...