Add meta robots to a Chronoform page

Add meta robots to a ChronoForms page.

Overview

The problem is that setting "noindex, nofollow" in the Joomla menu settings does not apply to the CF page.
Use the provided PHP code within the form to directly set the meta data, which successfully adds the robots tag.

Answered
gl glazweb 20 Feb, 2019
Hello.
In Chronoforms6, how to ?
Because choosing "noindex, nofollow" in Menu settings doesn't work.

Thank you !
he healyhatman 20 Feb, 2019
Answer
In PHP
$document = JFactory::getDocument();
$document->setMetaData( 'tagname', 'tagcontent' );
gl glazweb 21 Feb, 2019
Hello healyhatman,

and many thanks for your help.
It works perfectly!

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