JOOMLA FICTION LAB
When you want to display only a certain amount of characters of a text block in Joomla, you can use the class JHTML and the method truncate.
With this code you can load the parameters of any Joomla module inside an external php file.

How to load the Joomla framework inside an external file

by minitek Monday, 02 April 2012 13:56
In some cases, like when you are accessing an external php file through an ajax call, it is necessary to load the Joomla framework inside that file. Loading the framework will ensure that you can use the Joomla classes and methods in the external file.

How to get the absolute page url in Joomla

by minitek Thursday, 01 December 2011 14:19
In Joomla, you can use the method JFactory/getURI to get the current absolute url:

How to insert a module position inside a Joomla component

by minitek Monday, 14 November 2011 14:17
You can easily insert a module position in any Joomla component page by using the JModuleHelper class and the getModules and renderModule methods. To learn more about the JModuleHelper class, visit this page. Code usage Insert these lines inside the component template file where you…

How to get the current page title in Joomla

by minitek Wednesday, 19 October 2011 13:52
In Joomla there is a very fast way to get the Page Title using the Joomla API and the method JDocument::getTitle. You can visit this link for a more detailed description of the JDocument::getTitle method. Now you can take this one step further and modify…

How to use the Joomla API to check if SEF is ON or OFF

by minitek Monday, 05 September 2011 14:04
When developing extensions for Joomla, you often need to know whether the SEF url's option is ON or OFF in the Global Configuration. This is very common when developing Social Widgets extensions, where you need to construct a static url for the current page. You…