![]() SmartLink Socioclick's mambot - SmartLink lets you do following things: insert links using more natural and easy language than regular HTML and process outgoing links changing their behavior and view. Insert links using natural language Smartlink offers several solutions to make it more easy to add hyperlinks into your articles. 1. Add links as raw URL. Just write address of page and it could be replaced with clickable HTML hyperlink. Example: www.socioclick.com will be replaced with www.socioclick.com 2. Use SmartLink tags. If you need more advanced abilities for hyperlinks adding, you can use SmartLink tags. SmartLink tags are syntactic structures surrounded with [brackets] and having two parts separated with "->". Example: [Our site -> www.socioclick.com] will be converted to Our site Left side of this structure usually acts as a text of hyperlink and right side as an address. SmartLink mambot works correctly with absolute URLs as well as with relative. It considers url as absolute in the case when it begins from http://, https://, ftp:// or www. URLs like follows will be considered as internal relative - index.php?aaa=bbb - ./index.php?aaa=bbb - ../index.php?aaa=bbb - /subdirectory - /index.php?aaa=bbb#732939 - ../subdirectory - #somemegaid In the case when right side looks like email address SmartLink automatically converts it to mailto link. Example: [Contact us if you have any questions -> This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ] will be converted to Contact us if you have any questions 3. Use SmartLink tags for search. You can not only specify precise URLs to point to some of web-pages. SmartLink allows you access various internal resources by their names. If Perform Search For SmartLink Tags Automatically parameter set to 'Yes' it will replace tag with direct link to most relevant resource. Example: [News -> ] be converted to link which will lead users to News section or category or redirect user by URL associated with menu item which has "news" word in its name. We implemented full text search which will determine internal resource which is most relevant with specified search term and take users directly there. It searches among menu items, sections, categories and content items. You're able to specify what type of items (menu items, sections, categories or content items) will be involved into search. Example: [News -> news@content] will try to find articles relevant to word "news". [News -> news@category] will point to category most relevant to "news" term. [News -> news@menu] will try to find menu item which has "news" word in its name. [News -> news@section] will point to Joomla! section most relevant to "news" term. In the case if Perform Search For SmartLink Tags Automatically set to 'No' or search did not find any pertinent result the tag will be replaced with link which will lead users to 'com_search' component. 4. Easily Point to Top External Resources You can use SmartLink syntax for adding search links to external search engines. Example: [Joomla at Google-> Joomla @google] - Joomla at Google [Joomla at Yahoo-> Joomla @ yahoo] - Joomla at Yahoo [Joomla at WIKI-> Joomla @ wiki] - Joomla at WIKI Add more external domains using PHP API If you're felling free to code using PHP you can add more external resources. Add your own handler functions and register them in following manner: Code: SmartLinkEngine::registerExternal(name, callback), where name is a part of SmartLink tag standing on the right from "@" sign. Like google in this example [Joomla at Google-> Joomla @google] callback is your user defined function; might be a string or array in the case when your handler is a method of some class object. Example: SmartLinkEngine::registerExternal('yahoo', array('SL_External', 'yahooHandler')) This example will add handler for tags like [Joomla at Yahoo-> Joomla @yahoo] The handler function is static method named yahooHandler of SL_External class Open all external pages in new window When someone opens you site surfing the web, the most correct strategy for you as site owner is let visitor open most of internal pages in same browser window as current page and open external pages in new window leaving your site open as long as possible. SmartLink offers you a solution which won't let you forget to add target="_blank" to the links which leads out from your site. It will automatically convert outgoing links making them open in new window. Also as an option it offers add special icon next to link. It will notify your visitors that this link will be open in new window. Example: www.socioclick.com This feature automatically applied to all outgoing links made from raw URLs and SmartLink tags. Additional Features * SEF URLs Support. All generated internal links automatically becomes search engine friendly. * ESCape characters. To avoid processing of substrings similar to SmartLink tags you can use backquotes. Example: `[Search for latest news -> News]` will not be converted. * If right side of tag is absent it automatically being replaced with left side. Example: [www.socioclick.com->] will be converted to www.socioclick.com * Cache It caches results for search triggered by SmartLink tags allowing system not to waste time searching the same items several times within one short period of time. You can switch it on/off and specify livetime for cached items. If you need to reset cache just set livetime parameter to 1 second and do what you want. Editor's Note:
Report this listing |
|||||||||||||||||||||||||||||



