Hidden categories are still indexed

More
11 years 4 months ago #45000 by gkhn
Hi there,

i have a category called hidden and I have set the robots option to no index, follow. I am not sure why this category is still indexed on Google.
Thank you.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #45012 by ggppdk
Hello

this is a bug, the robots parameter is not used,
- next version (v2.1.3 final) will have this fixed


to apply a fix now, edit file
components/com_flexicontent//views/category/view.html.php
and after line:
Code:
$meta_params = new JRegistry($category->metadata);
add:
Code:
if ( $meta_params->get('robots') ) $document->setMetadata('robots', $meta_params->get('robots')); elseif ($menu && $menu_matches && ($_mp=$menu->params->get('robots'))) $document->setMetadata('robots', $_mp);


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #45093 by gkhn

ggppdk wrote: Hello

this is a bug, the robots parameter is not used,
- next version (v2.1.3 final) will have this fixed


to apply a fix now, edit file
components/com_flexicontent//views/category/view.html.php
and after line:

Code:
$meta_params = new JRegistry($category->metadata);
add:
Code:
if ( $meta_params->get('robots') ) $document->setMetadata('robots', $meta_params->get('robots')); elseif ($menu && $menu_matches && ($_mp=$menu->params->get('robots'))) $document->setMetadata('robots', $_mp);

Great!

Thank you very much.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.332 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save