how can I prevent Google not to index view result page

nilubon03 22 Jul, 2014
Hi,

I have a form to collect personal info, then have a page to display those submissions. I know Joomla menu can prevent Google not to index by assigns on the menu item "no follow, no index". Since the view result page doest not have the menu item, it is just a link to view the submission. For example

http://mywebsite.com/component/chronoconnectivity/myformname

Please advise.

Thank you,

Nilubon
GreyHead 23 Jul, 2014
Hi Nilubon,

If you want to make the settings for all pages on your site you can do that in Site Admin | Global Configuration | Site

For a ChronoForm or ChronoConnectivity page you can add custom code like this:
<?php
$doc = JFactory::getDocument();
$doc->setMetaData( 'robots', 'nofollow' );
$doc->setMetaData( 'robots', 'noindex' );
?>

Bob
nilubon03 23 Jul, 2014
Hi Bob,
Thank you for your suggestion. I want to double check if I understand correctly. For Chronoforms, I need to put your code on On Load. For Chronoconnectivity, I need to put it on Header section on Custom Listing Settings. Sound right to you?

Thank you,

Nilubon
GreyHead 23 Jul, 2014
Answer
Hi Nilubon,

Yes, that sounds right to me. Use a Custom Code action for ChronoForms.

Bob
This topic is locked and no more replies can be posted.