Showing posts with label joomla module. Show all posts
Showing posts with label joomla module. Show all posts

Tuesday, April 10, 2012

[Joomla]Execute Modules with Parameters

In other post Execute Modules Manually, I showed how to load modules but without setting its parameters which is somewhat a downside because what if you want to set some parameters.

Saturday, February 11, 2012

[Joomla 1.5 Extension] JC Daily Message 1.0.0

A simple module that displays a daily message set on module's parameter
You can use the module as a reminder, daily bible verses, or some other stuff.

Download module.

[Joomla 1.5 Extension] JC Random Facts 1.0.0

I created a simple Joomla component and module. If you're new to Joomla, then you'd find the said extensions easy to read and study the codes.

JCRandomFacts component let's you add, edit and remove a fact.

JCRandomFacts module displays one fact save from the component.

Download component and module.

Tuesday, January 31, 2012

[Joomla] Execute Modules Manually

Modules are easy to execute given that it can be place anywhere as long you assign it to a specific position but what if you want to display a module within a component?

Here's the code on how to load a single module:
jimport('joomla.application.module.helper');
$module = JModuleHelper::getModule('mod_module','modtitle'); 
echo JModuleHelper::renderModule($module);

The downside with this is it won't apply its parameters. I think there's a way on how to do this but I haven't figure it out yet.

Monday, January 23, 2012

[Joomla] Load Module within an Article

{loadposition module}

loadposition indicates that a module is about to be loaded

module is the position of the module that will be loaded

But what if you only want to load a specific module in a particular position? There two ways to do this. The first is a trick with the position name while the other is using a third party plugin.

1. Trick with the position name


Though the Position value is a drop down, it is editable so you can freely change it in any word you want. So using the position in the image above, the syntax now would be:
{loadposition loadarticle}

2. Third party plugin
You can download the plugin here

The syntax is like this:
{module [63]}

For versions 2 and up, module chromes like none, xhtml, rounded can be define:
{module [63|rounded]}
Related Posts Plugin for WordPress, Blogger...