Hi David,

The code in the template's index.php file tells core not to write the
generator meta tag. The template is not part of core Joomla so updates do
not overwrite templates (at least they are not supposed to :-)  The concept
is like HTML overrides.

- - - Steve


On Fri, Feb 22, 2013 at 7:57 PM, David Roth <davidalanr...@gmail.com> wrote:

> Doesn't that get overwritten when you upgrade Joomla?
>
> David Roth
>
>
> On Fri, Feb 22, 2013 at 7:34 PM, Stephen Britton <sbrit...@gmail.com>wrote:
>
>> No need to install an extension.
>>
>> Just cut and paste this line of code in the JEXEC or die PHP code block
>> at the top of the
>> index.php file
>>
>> // Remove the generator meta tag
>> $this->setGenerator(null);
>>
>> And once you are done, the code should look something like this:
>>
>> <?php
>> /**
>>  * @copyright  Copyright (C) 2009 - 2012 Stephen Britton.
>>  * http://www.joomlajems.com
>>  * @license    GPL 2 or later
>>  */
>>
>> defined('_JEXEC') or die;
>> $app = JFactory::getApplication();
>>
>> A WHOLE BUNCH OF CODE IS IN HERE DEPENDING ON THE TEMPLATE
>>
>> // Remove the generator meta tag
>> $this->setGenerator(null);
>>
>> ?>
>>
>> Hope this helps.
>>
>> - - - Steve
>>
>>
>> On Fri, Feb 22, 2013 at 7:15 PM, David Roth <davidalanr...@gmail.com>wrote:
>>
>>> Yes there is. I don't recall the extension but you should be able to
>>> find it at Joomla.org.
>>>
>>> David Roth
>>> On Feb 22, 2013 5:48 PM, "Unitel" <unite...@gmail.com> wrote:
>>>
>>>>   Hello everyone,****
>>>>
>>>> ** **
>>>>
>>>> This line of code > meta name="generator" content="Joomla! - Open
>>>> Source Content Management < gets displayed when user clicks on “View
>>>> Source”. Is there anyway of hiding it?****
>>>>
>>>> ** **
>>>>
>>>> ** **
>>>>
>>>> Best regards,****
>>>>
>>>> ** **
>>>>
>>>> Marcos Miranda ****
>>>>  [image: ---]
>>>>
>>>> ** **
>>>>
>>>> _______________________________________________
>>>> New York PHP SIG: Joomla! Mailing List
>>>> http://lists.nyphp.org/mailman/listinfo/joomla
>>>>
>>>> NYPHPCon 2006 Presentations Online
>>>> http://www.nyphpcon.com
>>>>
>>>> Show Your Participation in New York PHP
>>>> http://www.nyphp.org/show_participation.php
>>>>
>>>
>>> _______________________________________________
>>> New York PHP SIG: Joomla! Mailing List
>>> http://lists.nyphp.org/mailman/listinfo/joomla
>>>
>>> NYPHPCon 2006 Presentations Online
>>> http://www.nyphpcon.com
>>>
>>> Show Your Participation in New York PHP
>>> http://www.nyphp.org/show_participation.php
>>>
>>
>>
>>
>> --
>> Stephen Britton
>> Technology Consultant
>> sbrit...@gmail.com
>> Twitter: @StephenBritton
>> ph: 914-661-0040
>>
>> "Life isn't about finding yourself. Life is about creating yourself." -
>> George Bernard Shaw
>>
>> _______________________________________________
>> New York PHP SIG: Joomla! Mailing List
>> http://lists.nyphp.org/mailman/listinfo/joomla
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



-- 
Stephen Britton
Technology Consultant
sbrit...@gmail.com
Twitter: @StephenBritton
ph: 914-661-0040

"Life isn't about finding yourself. Life is about creating yourself." -
George Bernard Shaw

<<image001.gif>>

_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to