Remove Generator META in Joomla

For security reason, you may want to remove generator META in your joomla project :

for this you can simply add this line :

 $this->setGenerator(''); 

in the top of your ‘index.php’ template file.

Test if you’re on the homepage in Joomla

Hello,

today I’ll show you an elegant way to check if we are in the home page of our Joomla project :

 $IsHomePage =  false;
$menu = &JSite::getMenu();
if( $menu->_default == $menu->_active)
{
	$IsHomePage = true;
}

it’s specialy helpfull for intergators (templates).

Create a new select “option” and inject it

I’ve been looking this evening for a way to inject an “option” into select list using Mootools (work for 1.11 and 1.2 version),

Here the solution :

var MyElement =  new Element('option');    
MyElement.inject($('my_select'));
MyElement.setProperty('value','0');
MyElement.appendText('hello');

Modify module position in prestashop

Back Office >> Modules >> Positions

if you try to move module from right to left (for example), normally and logically you try to edit it :

but the option “Hook intro” is disabled , humm very confusing :-|

the only way that I’ve found is to delete the module, and re-transplant it.

Return top

About ME

A Web developer, Made in Morocco

Facebook
Twitter
Linkedin
Viadeo