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


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

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

#11 SmetDenis

SmetDenis

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

Add in top this line
$align = $this->app->jbitem->getMediaAlign($item, $layout);
Replace block of code on 47 line to
    <?php if ($this->checkPosition('media')) : ?>
        <div class="item-image align-<?php echo $align; ?>">
            <?php echo $this->renderPosition('media'); ?>
        </div>
    <?php endif; ?>

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



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


#12 P.K

P.K

Отправлено 05 July 2013 - 15:42

I have been able to achieve the layout but i have three issues

1) I am not able to create the border around item as it is in zoo. Border is present only on the tabs. I want the border around the complete product

2) If i want to change the design of the tabs. How can i do it?

3) I want a showcase box with icons for each item as it is in the widgetkit.

Is that possible?


  • 0

#13 SmetDenis

SmetDenis

Отправлено 05 July 2013 - 22:29

1) I am not able to create the border around item as it is in zoo. Border is present only on the tabs. I want the border around the complete product
 

Try to enable this option

20130706-9tm-11kb_200x0.png

 

And add to wrapper DIV class="rborder"

<div class="rborder">
    // Item layout
</div>

 

2) If i want to change the design of the tabs. How can i do it?
 

Tabs were made using the jQueryUI.

User jQueryUI Theme constructor - http://jqueryui.com/themeroller/

 

 

3) I want a showcase box with icons for each item as it is in the widgetkit.
 

I do not understand what you mean. Can you show an example?


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



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


#14 P.K

P.K

Отправлено 06 July 2013 - 07:26

I meant can we use gallery such as

124fd4.jpg

Can we use them instead of images for each product? This is similar to jbzoo galleries but has navigation. 

 

 

 

http://www.yootheme....mples/slideshow


  • 0

#15 Sliapy

Sliapy

Отправлено 06 July 2013 - 11:20

Unfortunately, there are no such functions in the JBZoo right now.


  • 0
[color=#aa0000]Не забывайте нажимать кнопку "Вопрос Решён" под сообщением, которое решило Вашу проблему.[/color]

#16 P.K

P.K

Отправлено 06 July 2013 - 14:45

Unfortunately, there are no such functions in the JBZoo right now.

But we have the gallery in jbzoo. Cant we modify the gallery to look like this?


  • 0

#17 Sliapy

Sliapy

Отправлено 06 July 2013 - 15:50

Now it's a very simple gallery. You can see how it works on this page - http://demo.jbzoo.co...s-eee-pc-1015bx  (Gallery tab).

 

It shows some photos from the selected folder.

 

I think, it won't be so easy to make it looks like you want.


Сообщение отредактировал Sliapy: 06 July 2013 - 15:52

  • 0
[color=#aa0000]Не забывайте нажимать кнопку "Вопрос Решён" под сообщением, которое решило Вашу проблему.[/color]

#18 P.K

P.K

Отправлено 07 July 2013 - 15:55

Cant some slider like this be used instead of nivo slider by doing some modifications.

http://showcase.awkw...com/index2.html

 

Can slider like this be integrated into jbzoo?

thanks


  • 0

#19 Sliapy

Sliapy

Отправлено 07 July 2013 - 18:04

I think, it's possible If you know how to create your own Zoo element.


  • 0
[color=#aa0000]Не забывайте нажимать кнопку "Вопрос Решён" под сообщением, которое решило Вашу проблему.[/color]

#20 P.K

P.K

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

Can you help me out configuring this showcase. I think it would be useful for others also

http://showcase.awkw...com/index2.html


  • 0




Click to return to top of page in style!