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