Joomla tips and tricks for the novice or the hacker. Serving Him by giving back what we have learned.
     
Home arrow Blogs arrow Joomla Core Tips & Tricks arrow Modules arrow How to make more module positions
How to make more module positions
 

Views : 1078    


In Joomla 1.0.x there are 50 module positions defined.

If you need more, here is how to add as many as you need.

The module positions in Joomla are simply a database table.  Inherently there are no limits to the number of entries in the table, so... it should be easy to add more.

But, the form in the back end only shows 50.

Look here...

click-back-end-for-module-positions.jpg






















And you will see...


only-50-positions-by-default.jpg






































The problem is not with the database, but with the form.

All you need to do is change (tweak/hack) the code that displays the form.

This solution was posted on the Joomla forum tips area.


The following is how you can create more module position fields within your Joomla Administration
(and thus, create more module positions).

Within your Joomla files (on your server), open --> administrator\components\com_templates and open admin.templates.html.php

In line 357 you have this code:

Quote:

function editPositions( &$positions, $option ) {
global $adminLanguage;
$rows = 25;
$cols = 2;
$n = $rows * $cols;
?>
If you modify the rows value you can have more module fields. You just have to increment this value and then fill the forms,
save it and it will add more records into the table.


I experimented with this and the fields you can create are virtually endless, depending on the parameters you set.
For example, I set the rows to "50" and the cols to 3 - and I had 150 available module positions. And yes, it works.


Click HERE to see the forum post .  Thanks bulesz



   
Quote this article in website
Favoured
Print
Send to friend
Related articles
Save this to del.icio.us

Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 

Display 1 of 1 comments

Works well

By: Grace Programmer (Guest) on 02-11-2008 07:34

Works well

By: Grace Programmer (Guest ) on 02-11-2008 07:34

I have built 2 product oriented sites for manufacturers. We used Tabs and Sliders to show features, pdfs, photo galleries, and info request forms on different tabs. To use all the tabs I needed to increase the number of positions. 
 
Works great! I only took 1 minute to make the change.

 

» Report this comment to administrator

» Reply to this comment...

Display 1 of 1 comments



Add your comment
Name
E-mail
Title  
Comment
 
Available characters: 600
   Notify me of follow-up comments
  Mathguard security question:
WSU         RNN      
J      6    F K   R5D
SYD   FKU   32T      
  3    P    5 L   DO7
HUI         D2K      
   
   



mXcomment 1.0.8 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved
Next >

Your help is a blessing

Enter Amount:

Most Read Articles

Newsletter

Please subscribe to our newsletter.

We will NOT be sending you sales or buy now stuff.

The newsletter will only have technical info. to help you with your web efforts.

Geek Updates


Receive HTML?

Last comments

Removing the ask about this...
hg
thanks google.com
More...
By berta

Images are cut off in...
not working
Hey. Good tip, but it doesnt...
More...
By piti4ek

Product detail gets pushed...
Worked for me
Thanks for posting this...
More...
By Vincent Treanor

How to use a different home...
Web guy
In your menu manager, be sure...
More...
By Jeff Honeyager

How to use a different home...
Joomla Home Page
Thanks for the article. I...
More...
By RoshJay

Post your Joomla Resume Here

gears.gifLooking for a Joomla expert to help with a problem or with your website.


Go to our FREE job postings and add your job. 

To see our "no charge" job posting and service provider area CLICK HERE NOW .

Latest Comments

No comment...

Login

Geeks for Grace a Narrow Path Hosting Partner
Powered By PageCache
Generated in 0.22388 Seconds