Jump to content


Photo
- - - - -

Микроразметка и https


Best Answer tchudov , 26 April 2017 - 18:28

понятно, надо было не 2, а 1 ставить

$ogglink = JRoute::_($this->app->route->item($this->_item, false), false, 1);

Спасибо

Go to the full post


8 replies to this topic

#1 tchudov

tchudov
  • JBZoo User (rus)
  • User rate: 0
  • posts: 158
  • topics: 27

Posted 26 April 2017 - 10:27

Уже были темы, но они закрыты и добавить вопрос нет возможности.

 

Я уже пользовался советом с этого форума, но перейдя на https возник новый вопрос.

 

Было так:

 

// og:url - урл страницы
$ogglink = JRoute::_($this->app->route->item($this->_item, false), true, -1);
$document->addCustomTag('<meta property="og:url" content="'.$ogglink.'" />');

Но после перехода на https ссылка получается http

 

Подскажите, пожалуйста, как это пофиксить?

 
 

  • 0

#2 CB9TOIIIA

CB9TOIIIA
  • Administrators
  • User rate: 230.6
  • posts: 3680
  • topics: 235

Posted 26 April 2017 - 10:49

$ogglink = JRoute::_($app->jbrouter->externalItem($this->_item, false), false, 2);

или $app = $this->app;


  • 0

#3 tchudov

tchudov
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 158
  • topics: 27

Posted 26 April 2017 - 12:25

$ogglink = JRoute::_($app->jbrouter->externalItem($this->_item, false), false, 2);

 

Fatal error: Call to a member function externalItem() on null in /home/t/tchudo/dp/public_html/media/zoo/applications/jbuniversal/templates/catalog/renderer/item/page/full.php on line 25

 

:(


  • 0

#4 CB9TOIIIA

CB9TOIIIA
  • Administrators
  • User rate: 230.6
  • posts: 3680
  • topics: 235

Posted 26 April 2017 - 12:46

Последнюю часть тогда только измените
  • 0

#5 tchudov

tchudov
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 158
  • topics: 27

Posted 26 April 2017 - 13:53

Последнюю часть тогда только измените

В смысле?


  • 0

#6 CB9TOIIIA

CB9TOIIIA
  • Administrators
  • User rate: 230.6
  • posts: 3680
  • topics: 235

Posted 26 April 2017 - 14:44

В смысле?

$ogglink = JRoute::_($this->app->route->item($this->_item, false), true, -1);

на

$ogglink = JRoute::_($this->app->route->item($this->_item, false), false, 2);


  • 0

#7 tchudov

tchudov
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 158
  • topics: 27

Posted 26 April 2017 - 15:59

$ogglink = JRoute::_($this->app->route->item($this->_item, false), true, -1);

на

$ogglink = JRoute::_($this->app->route->item($this->_item, false), false, 2);

нет, к сожалению никаких изменений.


  • 0

#8 CB9TOIIIA

CB9TOIIIA
  • Administrators
  • User rate: 230.6
  • posts: 3680
  • topics: 235

Posted 26 April 2017 - 16:00

нет, к сожалению никаких изменений.

 

http://forum.jbzoo.c...ssylku/?p=95011


  • 1

#9 tchudov

tchudov
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 158
  • topics: 27

Posted 26 April 2017 - 18:28   Best Answer

понятно, надо было не 2, а 1 ставить

$ogglink = JRoute::_($this->app->route->item($this->_item, false), false, 1);

Спасибо


Edited by tchudov, 26 April 2017 - 18:29.

  • 1




Click to return to top of page in style!