This Help forum is for issues relates to the latest release (1.7.9). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: Set Meta Robots

Set Meta Robots 6 months 4 weeks ago #1

  • PKlimis
  • PKlimis's Avatar
  • Offline
  • New
  • Posts: 39
How I can set the meta robots value in a page like relationship.php ?

I see that the value of this metadata in this page is "noindex,nofollow"
but in the individual.php the value is "index,follow"
The administrator has disabled public write access.

Set Meta Robots 6 months 4 weeks ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1547
I seriously doubt you want robots to crawl that page, since the Relationship chart is very expensive to execute with endless input possibilities. A robot crawler has no means to input the required variables. And there is no extra information there to fetch for website crawlers.

But if you really want to, find the controller responsible for the page and add
'meta_robots' => 'index,follow',

in the property list right after
return $this->viewResponse 

That should work for the 2.0 codebase.

In the 1.7 codebase it works differently. The PageController provides a default value through function getMetaRobots() and for instance the GedcomRecordController sets that to a different value. Robots are only allowed to crawl the basic gedcom records and not go through the lists, charts & reports. runs on webtrees v1.7.9
Last Edit: 6 months 4 weeks ago by bertkoor.
The administrator has disabled public write access.
Powered by Kunena Forum