
Best Answer zeus07 , 28 December 2015 - 21:10
Попробуйте заменить строку:
На эту:
В этом случае по идее оно будет брать title сразу автоматом из названия товара.
Go to the full post
Best Answer zeus07 , 28 December 2015 - 21:10
Попробуйте заменить строку:
На эту:
В этом случае по идее оно будет брать title сразу автоматом из названия товара.
Go to the full postPosted 28 December 2015 - 19:36
display: none
влияет только на отображение материала
это свойство только Скрывает элемент
у вас в коде тайтл отсутствует вообще
так что не обращайте на это внимание
попробуйте задать для материала в метаданных какое то НАЗВАНИЕ
и проверьте выводит ли эту надпись в тайтл
Тайтл формируется автоматом, если пусто в метаданных, берет из названия
Posted 28 December 2015 - 19:41
'alexmixaylov', on 28 Dec 2015 - 18:36, said:
Тайтл формируется автоматом, если пусто в метаданных, берет из названия
Вот это то меня и смущает, что все везде есть - а не выводит. Мистика блин
При чем, не показывает именно в позиции Full. Названия в тизере показывает как нужно
Edited by topins, 28 December 2015 - 19:43.
Posted 28 December 2015 - 19:58
Возможно вы переопределяли title в full.php?
посмотрите есть ли там что нибудь типа :
Если нет, как вариант попробуйте title задавать именно там
А вообще мистика, не встречал еще такого...
Posted 28 December 2015 - 20:20
Да, по ходу дело в коде шаблона Full. Он сейчас так выглядит
- <?php
- /**
- * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
- *
- * @package jbzoo
- * @version 2.x Pro
- * @author JBZoo App http://jbzoo.com
- * @copyright Copyright (C) JBZoo.com, All rights reserved.
- * @license http://jbzoo.com/license-pro.php JBZoo Licence
- * @coder Denis Smetannikov <denis@jbzoo.com>
- */
- // no direct access
- defined('_JEXEC') or die('Restricted access');
- $document = JFactory::getDocument();
- $document->setMetadata('description', strip_tags(trim($this->renderPosition('meta-description'))));
- $document->setMetadata('keywords', strip_tags(trim($this->renderPosition('meta-keywords'))));
- $document->setTitle(strip_tags(trim($this->renderPosition('meta-title'))));
- $align = $this->app->jbitem->getMediaAlign($item, $layout);
- $tabsId = uniqid('jbzoo-tabs-');
- echo $this->renderPosition('title', array('style' => 'jbtitle'));
- echo $this->renderPosition('subtitle', array('style' => 'jbsubtitle'));
- echo $this->renderPosition('likes', array('style' => 'jbblock', 'class' => 'align-left'));
- echo $this->renderPosition('rating', array('style' => 'jbblock', 'class' => 'align-right'));
- ?>
- <div class="clear clr"></div>
- <div class="rborder item-body">
- <?php if ($this->checkPosition('image')) : ?>
- <div class="item-image align-<?php echo $align; ?>"><?php echo $this->renderPosition('image'); ?></div>
- <?php endif; ?>
- <?php if ($this->checkPosition('anons')) : ?>
- <div class="item-anons"><?php echo $this->renderPosition('anons'); ?></div>
- <?php endif; ?>
- <?php if ($this->checkPosition('meta')) : ?>
- <hr/>
- <div class="item-meta">
- <?php echo $this->renderPosition('meta', array('style' => 'jbblock', 'labelTag' => 'strong', 'tag' => 'p')); ?>
- </div>
- <?php endif; ?>
- <div class="clear clr"></div>
- </div>
- <?php if ($this->checkPosition('meta')) : ?>
- <?php echo $this->renderPosition('social', array('style' => 'jbblock')); ?>
- <?php endif; ?>
- <div class="clear clr"></div>
- <?php if ($this->checkPosition('tab-text')
- || $this->checkPosition('tab-gallery')
- || $this->checkPosition('tab-properties')
- || $this->checkPosition('tab-reviews')
- || $this->checkPosition('tab-comments')
- ) :
- $positionParams = array(
- 'style' => 'jbblock',
- 'tag' => 'div',
- 'labelTag' => 'h3',
- 'clear' => true
- );
- ?>
- <div id="<?php echo $tabsId; ?>" class="rborder">
- <ul>
- <?php if ($this->checkPosition('tab-text')) : ?>
- <li>
- <a href="#tab-text"><?php echo JText::_('JBZOO_ITEM_TAB_DESCRIPTION'); ?></a>
- </li>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-properties')) : ?>
- <li>
- <a href="#tab-properties"><?php echo JText::_('JBZOO_ITEM_TAB_PROPS'); ?></a>
- </li>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-gallery')) : ?>
- <li>
- <a href="#tab-gallery"><?php echo JText::_('JBZOO_ITEM_TAB_GALLERY'); ?></a>
- </li>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-reviews')) : ?>
- <li>
- <a href="#tab-reviews"><?php echo JText::_('JBZOO_ITEM_TAB_REVIEWS'); ?></a>
- </li>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-comments')) : ?>
- <li>
- <a href="#tab-comments"><?php echo JText::_('JBZOO_ITEM_TAB_COMMENTS'); ?> (<?php echo $item->getCommentsCount(); ?>)</a>
- </li>
- <?php endif; ?>
- </ul>
- <?php if ($this->checkPosition('tab-text')) : ?>
- <div id="tab-text"><?php echo $this->renderPosition('tab-text', $positionParams); ?></div>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-properties')) : ?>
- <div id="tab-properties">
- <table class="jbtable table zebra">
- <?php echo $this->renderPosition('tab-properties', array('style' => 'jbtable')); ?>
- </table>
- </div>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-gallery')) : ?>
- <div id="tab-gallery"><?php echo $this->renderPosition('tab-gallery', $positionParams); ?></div>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-reviews')) : ?>
- <div id="tab-reviews"><?php echo $this->renderPosition('tab-reviews', $positionParams); ?></div>
- <?php endif; ?>
- <?php if ($this->checkPosition('tab-comments')) : ?>
- <div id="tab-comments"><?php echo $this->renderPosition('tab-comments', $positionParams); ?></div>
- <?php endif; ?>
- </div>
- <?php $this->app->jbassets->tabs(); ?>
- <script type="text/javascript">
- jQuery(function ($) {
- $('#<?php echo $tabsId;?>').JBZooTabs({
- onTabShow: function (index) {
- var map = $('.googlemaps > div:first');
- if (map.length) {
- map.data('Googlemaps').refresh();
- }
- }
- });
- });
- </script>
- <?php endif; ?>
- <?php echo $this->renderPosition('related', array('style' => 'jbblock', 'labelTag' => 'h2', 'clear' => true)); ?>
Поскажите, куда вставить конструкцию (или как то иначе):
- <?php if ($this->checkPosition('title')) : ?>
- <h1 class="item-title"><?php echo $this->renderPosition('title'); ?></h1>
- <?php endif; ?>
Что бы все заработало? Возможно, как то накосячил с этим рецептом...
Edited by topins, 28 December 2015 - 20:24.
Posted 28 December 2015 - 21:10 Best Answer
Попробуйте заменить строку:
На эту:
В этом случае по идее оно будет брать title сразу автоматом из названия товара.
Posted 28 December 2015 - 21:25
Благодарствую, все работает!
Posted 28 December 2015 - 21:27
Да не за что, всегда пожалуйста)
Русский мини форум →
Открытый форум JBZoo & YOOtheme Zoo →
Изменение Тега Title При Использовании ФильтраStarted by Raven23 , 18 Jul 2019 ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]()
|
||
![]() Убрать заголовок в вариацияхStarted by internetmaster , 04 Jan 2018 ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]()
|
||
Русский мини форум →
Открытый форум JBZoo & YOOtheme Zoo →
Во всех title вконце присутствует "- русский"Started by sanyok911 , 24 Jan 2017 ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]()
|
||
Основной форум JBZoo →
Разное →
Разный title в пагинации - ver 2Started by programmos , 12 Dec 2016 ![]() ![]() ![]() ![]() ![]() ![]() |
|
|
||
Русский мини форум →
Открытый форум JBZoo & YOOtheme Zoo →
Keywords и DescriptionStarted by margo1597 , 11 Feb 2016 ![]() ![]() ![]() ![]() ![]() ![]() |
|
|