Jump to content


Photo
- - - - -

Вывод позиции в альтернативный макет статей


Best Answer Vseprosto , 27 June 2016 - 13:25

например так 

$document   = & JFactory::getDocument();
$renderer   = $document->loadRenderer('modules');
$options    = array('style' => 'xhtml');
$position   = 'article-banners';
echo $renderer->render($position, $options, null);
Go to the full post


  • This topic is locked This topic is locked
3 replies to this topic

#1 Den

Den
  • JBZoo User (rus)
  • User rate: 0
  • posts: 178
  • topics: 47

Posted 27 June 2016 - 13:21

Заранее прошу прощения за то, что вопрос имеет слабое отношение непосредственно к JBZoo и Zoo, но здесь, наверное, много людей разбирающихся в Joomla, а я отчаился искать решение своей проблемы.

 

Итак, мною был сделан альтернативный макет для статей в Джумле и все хорошо, но мне нужно вставить в этот макет вывод модулей также как в файле index.php.

Обычный тег <jdoc:include type="modules" name="position-name" /> естественно не срабатывает.

 

Если кто-то сможет подсказать что-то буду очень благодарен.


  • 0

#2 Vseprosto

Vseprosto
  • JBZoo User (rus)
  • User rate: 8.6
  • posts: 235
  • topics: 16

Posted 27 June 2016 - 13:25   Best Answer

например так 

$document   = & JFactory::getDocument();
$renderer   = $document->loadRenderer('modules');
$options    = array('style' => 'xhtml');
$position   = 'article-banners';
echo $renderer->render($position, $options, null);

  • 3

#3 Den

Den
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 178
  • topics: 47

Posted 27 June 2016 - 13:30

Спасибо вам огромное!


  • 0

#4 Vseprosto

Vseprosto
  • JBZoo User (rus)
  • User rate: 8.6
  • posts: 235
  • topics: 16

Posted 27 June 2016 - 13:31

да не за что


  • 0




Click to return to top of page in style!