Перейти к содержимому


Фотография
- - - - -

DB reindex


Лучший Ответ SmetDenis , 02 July 2013 - 12:59

Open the file "positions.xml" (near the layout file).

 

Add new positions, as in this screenshort

20130702-q29-23kb.png

 

 

Add to your layout code this (for rendering html-code)

<?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="jbzoo-tabs" class="rborder">
        <ul>
            <?php if ($this->checkPosition('tab-text')) : ?>
                <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-text"><?php echo JText::_('JBZOO_ITEM_TAB_DESCRIPTION');?></a></li>
            <?php endif; ?>
 
            <?php if ($this->checkPosition('tab-properties')) : ?>
                <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-properties"><?php echo JText::_('JBZOO_ITEM_TAB_PROPS');?></a></li>
            <?php endif; ?>
 
            <?php if ($this->checkPosition('tab-gallery')) : ?>
                <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-gallery"><?php echo JText::_('JBZOO_ITEM_TAB_GALLERY');?></a></li>
            <?php endif; ?>
 
            <?php if ($this->checkPosition('tab-reviews')) : ?>
                <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-reviews"><?php echo JText::_('JBZOO_ITEM_TAB_REVIEWS');?></a></li>
            <?php endif; ?>
 
            <?php if ($this->checkPosition('tab-comments')) : ?>
                <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#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-gallery')) : ?>
            <div id="tab-gallery"><?php echo $this->renderPosition('tab-gallery', $positionParams); ?></div>
        <?php endif; ?>
 
        <?php if ($this->checkPosition('tab-properties')) : ?>
            <div id="tab-properties">
                <ul class="item-properties"><?php echo $this->renderPosition('tab-properties', array('style' => 'list'));?></ul>
            </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>
 
    <!-- include jQuery UI lib -->
    <?php $this->app->jbassets->jQueryUi(); ?>
    <script type="text/javascript">
        jQuery(function ($) {
            $('#jbzoo-tabs').tabs();
        });
    </script>
<?php endif; ?>


For example you may see  Product Full layout

 

media\zoo\applications\jbuniversal\templates\catalog\renderer\item\product\positions.xml

media\zoo\applications\jbuniversal\templates\catalog\renderer\item\product\full.php



YooTheme Zoo documentation for help

http://www.yootheme....-with-positions

Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 20

#21 SmetDenis

SmetDenis

Отправлено 09 July 2013 - 08:37

Can you help me out configuring this showcase. I think it would be useful for others also
http://showcase.awkw...com/index2.html

Sorry, but our support only for JBZoo App.
This showcase is not iur product.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.





Click to return to top of page in style!