|
Page 1 of 2 I'm very pleased to release my first Joomla! extension! I named it "Bot link". As its name indicates, it is a plugin which automatically places links on pieces of text of your choice in your Joomla! articles. You may use it with a simple text expression or a more advanced perl regular expression. An additional nice feature is that It does not introduce links in places already containing one... Bot link is still under heavy development and I would not qualify any version as beta, alpha, release candidate or anything. The bot is already relatively stable but requires probably too much the use of regex to be really practical for users which don't like perl regular expressions (Are there any?). My goal is to polish everything for 1.0.0. Anyway, I advise users to check regularly for new versions as Bot link will still improve in the near future... Syntax{%bot_link (text="text"|regex="pattern" [text="text"]) link="url" [class="class" alt="text" title="text" html="1" case="1" popup="1"]} The "%" character after "{" is only here so that the bot is ignored on this page... ArgumentstextIf used alone, means the text to search for. Used in combination with the regex argument, means the text to replace the regular expression matches (optional). regex A perl-style regular expression to search for. If used, the "case" argument will be ignored. The expression inside the delimiters has to be set in parenthesese (Have a look at the examples). If a second set of parentheses is used, only its content will be linked by the bot leaving the rest untouched. If a third set is used, the middle set delimits a text portion that will be replaced by the expression delimited by the third (and most inner set) The link will be placed around this last text portion. Any other set of parenthesis should be commented. For deeper documentation, look at PHP manual's chapter about Pattern syntax. link A valid url. Internal urls are processed through the sefRelToAbs() function. class Specifies a class for the links markups of this specific bot. Overrides the default "class" parameter of the plugin. altThe alt attribute of the links markups titleThe tooltip displayed by the link caseOptional. Ignored if the regex argument is used 0 - Case insensitive (default) 1 - Case sensitive html0 - The bot will ignore the HTML markups of your content and translate the HTML special characters (e.g. " will be translated to "). (default) 1 - The bot will treat the HTML markups and special characters as normal text. In both cases, links already present in the text will not be affected by Bot link. popupOptional. 0 - Open link in the same window (default) 1 - Open link in a popup window Add to favourites (0) | Quote this article on your site | Views: 4126
Only registered users can write comments. Please login or register
< Previous page - Next page > |