Skip to content

Creating a custom module position in Joomla

This tutorial helps to create a customised position for placing a module. Was frustrated that the template I’m using doesn’t have the position I needed. In order to place a module at the desired position, I have to dig into the templete index.php file and insert the following code:

<?php if ($this->countModules(‘Yang-Module‘)) : ?>

<div>

<jdoc:include type=”modules” name=”Yang-Module” style=”xhtml” />

</div>

<?php endif; ?>

Change the highlighted part to whatever name you wish

To look for the desired location to place the code, I use chrome inspect element, and locate the name of the <div> that I wish to insert my content.

Search and locate the name in the templete index.php then place the code.

Once the update is complete, you can manually input the position name you named into the module position

The module will display at the desired position finally!

Joomla Installation Problem

Faced some issue with installing templates and extensions for Joomla 2.5. Trying to installed through extension manager, install and upload package file. Resulting error:

Unable to Find Install Package

Caused by:

The FTP is not functional inside the Joomla, require to manually activate the Joomla ftp. 

Resolved by: 

Edit the configuration.php

Ensure the following line value is being set to 0.

var $ftp_enable = ’0′;

Information source: http://forum.joomla.org/viewtopic.php?t=225840