Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Почему подставляется двойной метатег?


Recommended Posts



private $robots;
		public function setRobots($value) {
			$this->robots = $value;
		public function getRobots() {
			return $this->robots;


в catalog/controller/common/header.php

$data['robots'] = $this->document->getRobots();


в header.twig

{% if robots %}
	<meta name="robots" content="{{ robots }}" />
	{% endif %}


далее добавляю напр. в контроллер login.php

$this->document->setTitle($this->language->get('heading_title')); после добавляю




выводится двойной метатег

<meta name="robots" content="noindex,follow" />
	 	<meta name="robots" content="noindex,follow" />

в чем может быть трабла?

Link to comment
Share on other sites

Удалите тогда ваш в обратном порядке и смотрите на каком этапе перестанут выводится дубль.. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.