Page 1 of 2

How can i add new module positions on a Joomla 1.5 site?

Posted: Sun Feb 10, 2008 11:01 am
by cbal
On the 1.0.x series we could add new module positions on the joomla installation via Template manager- module positions (total 50 places).

How can we do this in 1.5?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sun Feb 10, 2008 1:10 pm
by herb200mph
Admin B/E >> Module Manager >> New >> select type >> then in location field, type in name of new module position.

Then in templateDetails.xml, in this section >> add your newly named module position.


breadcrumb
left
right
top
user1
user2
user3
user4
footer
debug
syndicate


Then, add the module to your template/index.php file like any other module.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Tue Feb 12, 2008 2:04 am
by Quads
The one thing I've been struggling on, and have mentioned it in other threads is module position.

Is there any standard or reference as to where module positions are?
Seems everyone is going their own thing in some of them, and some are by trial and error to find, but it would be nice if there was a reference to where the modules are typically located.

Is this documented in a thread, the wiki, or the joomla docs somewhere and I have never been able to find it?

Regards-
~Q

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 6:37 am
by Quads
Following up, I have a Joomla 1.5 book that shows one view of the template manager with a "module position" option as shown here:

Image

However in my existing installation of 1.5.1 I don't have this option. (as seen here:)

Image

Isthere something wrong with my install or did this go away with the final build of 1.5?

I'll also ask again if anyone has information on standard locations or positions on templates for each module?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 12:50 pm
by herb200mph
None of our 1.5 installs have the "Module Positions" tab either.

Is that an SVN Nightly after the 1.5.1 Security Release???

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 4:16 pm
by Quads
I have no idea herb2000.
That image is from Building Sites with Joomla and it references Joomla 1.5 beta 1 in it.

Is that feature elsewhere or has it been dropped?
And is there a standard or reference for typical module positions in Joomla 1.5?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 4:27 pm
by herb200mph
It must have been dropped. I just now installed a fresh SVN install and looked. It isn't there, so the core team must have nuked it back when. It sure would be helpful, eh? Anyway. Thanks for the response.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 4:31 pm
by Quads
Any pointers with regards to me other question on templates and module position?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Wed Feb 13, 2008 4:32 pm
by herb200mph
AH HA!

If you go to the template manager and click a template to edit and then at the top right "Preview" -- that's where it is now located. You can then open that display in a new window to see the full template.

MA VA LUS! Just MA VA LUS!!!

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 1:27 am
by bradnana
herb200mph,

All the preview in the template manager does is show how your site would look if the template were applied. Of course, it also shows the template positions marked but this is doable on the main site without going through the template manager just by using the ?tp=1 query string. The problem is, in 1.5, only positions with modules in them are shown. Is this true in the template manager preview as well?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 3:57 am
by Quads
If you play with it you will see / answer your question. Which is "no".
It doesn't show them as you would think in the template manager. The ?tp=1 string shows the same thing.
Modules which are in use.

Nice and all, but gives the user no idea of where other modules are located, should they be used. SO it's trial and error.
I've asked many times, in several different threads if this information exists, and it seems that nobody knows or the request for information is going on deaf ears.

Very frustrating.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 4:49 am
by bradnana
Quads,

I agree. Very frustrating. Apparently the new templating logic precludes showing all posible positions because some positions can be stripped from the page contingent upon modules being assigned to them. I recently commented to another user that it would seem best to show only positions that are acutally available in the template, i.e. change templates or alter the current templates XML, get a new set of positions in the module position drop-down list. After all, what's the point in having positions listed that aren't actually in the template?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 3:40 pm
by mozilla
Well its terrible.
Who's idea was that to remove the previous easier way?
Nobody asked me.. :)
Ive been following topics like this and nobody seems to have the answer.
Ive entered the crap into the xml file, ive added mod possition 5 and 6 into the index.php but does it show?
NOPE.
Im sure developers would say "its easier now" >:D
All i want is to add some extra module positions in the standard rhuk_milkyway because the developers forgot a few..

Anyone found out yet ?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 4:55 pm
by bradnana
Have you tried reinstalling your template AFTER you add the positions to the XML and index files? I'm wondering if the XML file only gets parsed during installation.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 5:05 pm
by mozilla
well i refreshed,cleared cache and on top...the extra modules also dont show in preview.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 6:09 pm
by bradnana
mozilla wrote:well i refreshed,cleared cache and on top...the extra modules also dont show in preview.
I think you're refering to refresing the browser and browser cache. That's not what I meant. I'm thinking J! may require you to uninstall the template, add the positions you want to the XML and index files, then reinstall the template package.

Fact is, if J! is not adding the positions to the DB in the first place, and if you can't see the new position in the 'Position: ' drop-down list in the Module Manager, it will never output the position in the code and it won't matter how much you refresh the browser.

Maybe I'm off the mark here. Curious, do you see the positions in the drop-down list in the Module Manager after you've added them to the template XML file?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 7:26 pm
by mozilla
yes from the dropdown de new added ones show..

part i added in the milky template is.

Code: Select all

<?php if ($this->countModules('user5')) : ?>
    <div>
        <jdoc:include type="modules" name="user5" style="xhtml" />
    </div>
<?php endif; ?>


<?php if ($this->countModules('user6')) : ?>
    <div>
        <jdoc:include type="modules" name="user6" style="xhtml" />
    </div>
<?php endif; ?>

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 7:52 pm
by bradnana
Well, ya got me then!

Do you have the J! cache turned off in the Global Configs?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 9:04 pm
by mozilla
well i forgot to turn that on..
its off..
so that cant be it..huh

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 10:16 pm
by bradnana
OK, I'd think the first thing would be to start debugging the index.php file where you have edited it. Maybe start by putting a position that's already working into your new code and see if the module in that position gets rendered. Like this:

Code: Select all

<?php if ($this->countModules('user5')) : ?>
    <div>
        <jdoc:include type="modules" name="footer" style="xhtml" />
    </div>
<?php endif; ?>


<?php if ($this->countModules('user6')) : ?>
    <div>
        <jdoc:include type="modules" name="footer" style="xhtml" />
    </div>
<?php endif; ?>
If that fails, then it's not getting a positive value from the count of the 'user5' and 'user6' positions. So try this:

Code: Select all

<?php if ($this->countModules('footer')) : ?>
    <div>
        <jdoc:include type="modules" name="user5" style="xhtml" />
    </div>
<?php endif; ?>


<?php if ($this->countModules('footer')) : ?>
    <div>
        <jdoc:include type="modules" name="user6" style="xhtml" />
    </div>
<?php endif; ?>
Of course, this assumes you have a module published in the footer position and that it has been working correctly elsewhere.

BTW, are you positive nothing is being generated in the HTML? have you checked the source?

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Sat Feb 16, 2008 10:28 pm
by mozilla
i will give that a try tomorrow..
as its late here..
i will post back as soon as i tried it..

thank you.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Thu Feb 21, 2008 6:00 pm
by vibby
To solve this problem, I modified manualy the mysql table "#_module". There I replace one module position by the new one and it works !

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Fri Feb 22, 2008 11:03 am
by Kin
Lol hope they solve this quick, it's kinda important feature. :)

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Fri Feb 22, 2008 1:11 pm
by simplybukovel
I've got a similar issue.

I am using a template. http://www.simplybukovel.com

On my old site I have a small weather display box which I inserted into my html. I would like to use that on this site and for the box to appear to the right of the skier. How do I go about doing this? I imagine I first need to make that area a module area? Then how do I put the code there?

I am realy struggling with this and any help wold be greatly appreciated.

Thanks

SimplyB

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Fri Feb 29, 2008 7:16 pm
by thenewbreed
Where exactly in templateDetails.xml is this list? Because I see no such listing of module positions and therefore no where to enter the new position.
Then in templateDetails.xml, in this section >> add your newly named module position.
breadcrumb
left
right
top
user1
user2
user3
user4
footer
debug
syndicate

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Fri Mar 07, 2008 10:15 am
by Partic
The way it is in the beta as shown in Quads' post from the book would be very very very nice.

But thanks to my mate John Wood, who shared the trick in an email with me earlier this week, here's the gap filler in the instructions from above.

In your templateDetails.xml file, add the following into the XML with the list of the custom module positions you wish to add.

Code: Select all

<positions>
      <position>custom1</position>
      <position>custom2</position>
      <position>custom3</position>
</positions>
These will then appear in the Module Positions drop down list in the Module edit page.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Fri Mar 07, 2008 10:32 am
by Partic
simplybukovel wrote:I've got a similar issue.

I am using a template. http://www.simplybukovel.com

On my old site I have a small weather display box which I inserted into my html. I would like to use that on this site and for the box to appear to the right of the skier. How do I go about doing this? I imagine I first need to make that area a module area? Then how do I put the code there?
SimplyB,

Looks like you got it into your site... but for others wanting to add something like this, especially if you want to add it in a different position, I would...
  • Add a custom module position into your templateDetails.xml file
  • Next, either insert some code in your index.php file to show the module
  • Or in your content, call the module position using the mosloadmodule plugin
  • Finally, create a Custom HTML (1.5) or User (1.0) module to display your code
Detailed help on creating your own module should be in the Joomla Help pages or somewhere in the forums.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Tue Mar 11, 2008 7:01 am
by EightBall97128
Ok ... I'm mostly happy with J! 1.5x but this module position thing is well ... to put it bluntly terrible design implementation. "Not functional or Elegant ... what do code monkies think?" :geek:

Sorry folks but this needs to get fixed. My clients like to self manage their sites a lot of the time, and this ... well they aren't coders and don't know PHP/XML from the on/off button on their TVs if you get my drift. They like it to be "pointy clicky" and it works. You know like J! 1.0x module position creation ... couple of mouse clicks, some simple words ... user# ... etc etc. save ... done.


Please fix this. I really don't want to switch back to 1.0.15 but if I have to I will.


Thanks for listening. :pop

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Tue Mar 11, 2008 5:40 pm
by victune
I agree, this "bug" should be fix.

Re: How can i add new module positions on a Joomla 1.5 site?

Posted: Tue Mar 11, 2008 6:22 pm
by Quads
A start in the right direction to this issue would be simply asking theme developers to a) list where they are putting each module in the theme with a diagram of some sorts, and b) clearly listing their code which controls it.

It's not an issue that Joomla! per say can fix, but more so something that needs to be driven back out to the community from a development standards viewpoint.

I played with 1.0.x for a while, and finally settled on 1.5 for several production implementations and this has been one of the most frustrating things by far.