Saturday, 9 October 2010

Joomla 1.5 - Insert Modules into an article using loadposition

Joomla 1.5 Insert Modules into Articles
So you want to insert a module into an article, or maybe even a Google Ad into your joomla 1.5 website....here's a fairly easy way to do it in a few simple steps.

Step 1: Select or create the module you want to place within an article. Go to the Module Manager page and click on the module name, this will take you to the module edit screen part of which is shown here.

Step 2: Click within the text area of the 'Position' drop down box (highlighted in red), but not on the drop down arrow. Delete the name in the box and enter your own unique name without any spaces into the box. This must be a unique name you will only use for this module and not for any others that you wish to display in the same way.

Step 3: Click on 'Save' to save your changes and exit the Module Edit screen.

Step 4: Go to the article you wish to display the Module on and edit with your wysiwyg editor.

Step 5: In the position where you wish the Module to be displayed enter this code

{loadposition UNIQUE_NAME }

replacing UNIQUE_NAME with the unique name you entered in the Module Edit screen.
You can display Google Ads or other content in a Joomla 1.5 site in this way by creating a Custom HTML Module and inserting the Google Ad code or other content into the Custom Module and following the steps above. 

Remove Joomla Reference in Generator Meta Tag

There are at least 3 ways to remove references to Joomla in the Generator Meta Tag, but here is the hardest.


Using eXtplorer or from server root via ftp or your control panel file manager
1. Go to libraries/joomla/document/html/renderer/
2. Locate file named head.php
3. If you are using Xtplorer click on edit file, and scroll down to line 83 where you will find the following line:


$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;


4. You can change the content to say whatever you like ie. content=" [whatever you like] " or if you definately don't want this meta tag then you can delete the line of code, or you can comment it out with a double slash in front like this


// $strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd; 

5. Save file and refresh your website home page. If you view the source the Generator Meta Tag should be gone.


If you don't use eXtplorer, download the head.php file and edit it with a basic text editor or dreamweaver then save and upload overwriting original head.php file.