PDA

View Full Version : SOLVED - More Then 50 Module Positions in Joomla


tcraw1010
06-22-2007, 08:03 PM
Does anyone know if it is possible to designate more than 50 module positions in Joomla?

If so, how is this accomplished? - as there are only enough fields for 50.


:confused:

tcraw1010
06-25-2007, 05:29 PM
* * * See Below * * *

tcraw1010
06-27-2007, 05:50 AM
The answer has been found . . .

Thanks to member "fabs" at the Joomla Forum, 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:

function editPositions( &$positions, $option ) {
global $adminLanguage;
$rows = 25;
$cols = 2;
$n = $rows * $cols;
?>

If you modify the rows value you can have more forms. 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.

Again, where the additional module positions could come in handy is if you utilize two or more different templates for one global site, and you want to make sure there is no cross-module position mix-up (i.e. both templates having a "user1" position, but with different designated modules/content). Create new/unique module position names for your content.


TOM

ErikThorsen
07-01-2007, 12:27 PM
Thanks for posting this Tom. Not that I think I will ever need it but it is always useful when people post solutions they have found to a problem. Who knows, one day I would need this as well and what better place to look for it than here? :-)

tcraw1010
12-05-2007, 03:36 AM
I just had cause to use this solution again - so I thought I'd bump it for newer members to benefit from as well.

:)

coos
12-09-2007, 03:37 AM
I just had cause to use this solution again - so I thought I'd bump it for newer members to benefit from as well.

:)
Can we see a site where you're using more than 50 module positions?

I bet it's collossal! ;)

tcraw1010
12-09-2007, 10:38 PM
It's still in the works. The point is that I needed to create about 40 "user" positions for various things/options. The method in the first posts allows you to create more fields for this purpose (if needed).

mfcphil
12-09-2007, 10:42 PM
Its a great tip, but good house keeping helps try and get rid of some of the positions you don't use anymore...bet we all have a lot:eek: