Friday, July 29, 2011

Joomla 1.5 - including menus and modules in articles

In this blog I am going to review the process I took while updating a joomla site recently, detailing:
-adding modules within your articles
-adding menus within your articles

Modules in Article!
This is a very handy and very easy thing to do, so I will make it quick.
All you need is your module installed and ready on your joomla backend.  Within your module be sure to take note of its 'position.'  In this case it should be unique like "user1."  Also be sure to select under menu assignment what pages this module will be appearing in.

Now go to your plugin manager and locate Content - load module which should be preloaded in there.  Here you only have to make sure that the plugin is enabled.

Now all you have to do is go to your article and paste in the following code
{loadposition user1} right into the text editor.
in this case user1 is the module position we specified earlier, but it can be whatever position you have assigned to that module.  (user2, left, moo).

Menus in an article!
This works almost exactly the same as adding a module to your article.  This is because when you make a menu joomla actually turns it into a module for you.
So all you have to do is make a new menu or find one that you already have.  Go to Module Manager and locate your module menu.
Just like with the previous example all you have to do is enable your module, select a unique position, select what pages it will appear on, and then use {loadposition } to place it in your article.

Pretty easy huh?

Next i'll clue you into styling your new menu

this article has two modules added with {load position} the unstyled
menu and the gallery.

No comments:

Post a Comment