Tutorial: Developing Joomla! Content Plugin

In our previous post in this series we have just created a new content plugin. We have created the plugin’s xml manifest file and now its our turn to install the plugin. In this post, we see how to instal and enable the plugin.

Enable and Test your new Plugin

After installing the plugin, we need to enable it. Plugins installed first time remain disabled. For enabling the plugin, go to Extensions > Plugin Manager. In Plugin Manager: Plugins screen you see the plugins listed. For easlily locating the content plugin, select Disabled in –Select Status– drop down list. That will show the plugin name in the list.

Plugin Installed

Click on the plugin named plg_content_helloworld . That will show Plug-in Manager: plg_content_helloworld screen.

In Plug-in Manager: plg_content_helloworld screen, select Enabled in Status field. Then click Save & Close icon in the toolbar.

Now the plugin is enabled and it should perform its duty. We have written a function to show Hello World. As we have used onContentAfterTitle() it should show the ‘Hello World’ just after the title of the article.

This text will be displayed for all articles, just after the title and before the body text of the article.

Please Note! If you don’t see the ‘Hello World’ text after the title of the article, you need to set article’s Show Intro Text value to Hide. This is needed for onContentTitleAfter event.


Learning Joomla! 3 Extension Development

At last I found this updated book for learning developing Joomla! 3 Extension Development. The book covers almost all aspects of Joomla! extension development; however, I think there could some more practical projects to illustrate how to develop different types of Joomla! extensions.

Learning Joomla! 3 Extension Development-Third Edition

By (author): Tim Plummer
List Price: $54.99 USD
New From: $45.92 USD In Stock
Android, Gadgets, Other

How to take screenshot on Galaxy Trend Duos


Very recently I bought a Galaxy Trend Duos. I was. Trying to get screenshot of some apps. Went to Google play and found some apps for taking screenshot. However most are for rooted devices. Suddenly found that I can take screenshot by pressing power and home button simultaneously. You just stop press both button at a time and keep pushing until you hear a beep. That’s it. No need to install app. You can download and install Google Keep from Play Store.


Adding parameters to a Joomla 2.5 plugin

So far we have created a very basic plugin that simply shows our predefined text in articles. You probably have noticed that while we were configuring the plugin there was no other parameters to configure, we have simply enabled the plugin. But many other plugins have many parameters to configure, and how we can have such parameters be added to our plugin? Yes, we are going to learn that now.

Let us modify the plugin so that instead of ‘Hello World’ we can show anything we want. We will specify our desired text through a parameter, and that text will be displayed in article. Continue reading


How to create a content plugin (Markdown) for Joomla! 2.5 in 10 minutes

Very recently I am impressed by Markdown and in all my writing using Markdown. Thanks to Leanpub I am writing some of my books in Markdown and planning to write all my blog posts in Markdown too.

As a first step, I have installed WP-Markdown plugin for my wordpress blog and happily using that.

But I am a Joomla! guy and usually support my clients managing and building sites with Joomla!. I was searching an extension for Joomla! that can easily transform an article written in Markdown syntax to HTML. In JED, with keyword markdown nothing returned what I was searching. So I decided to develop a plugin.

Great Google helped me finding PHP Markdown, it has two files – I downloaded PHP Markdown Extra 1.2.5. This file contains a readme and license text, and the main file markdown.php. The file contains classes to transform markdown’d text into HTML using PHP. Based on this, I created a content plugin for Joomla! 2.5, and fololowing are the steps which you may use as a Tutorial. Continue reading