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


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

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

#1 P.K

P.K

Отправлено 30 June 2013 - 06:04

Hi

 

I just installed jbzoo on my site with joomla version 3.1.1 and PHP 5.3.26. I have enabled the plugin and installed jbuniversal. After i created a jbzoo app i registered my jbzoo. Now when i try to reindex DB it starts and is stuck to 0%. What could be the problem?

 

I have also done the same on local wamp server but the problem remains the same

 

Thanks

 

 


  • 0

#2 Sliapy

Sliapy

Отправлено 30 June 2013 - 09:42

You don't need to reindex DB right away after installing of JBZoo. It won't work if you don't have any items.


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

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

#3 P.K

P.K

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

Thanks. Jbzoo is working perfectly

 

Can the item  layout for the template be changed? Suppose for example, I want the image to be on right on product page and the name of tabs also changed. How can that be possible?

Thanks


  • 0

#4 P.K

P.K

Отправлено 01 July 2013 - 15:49

Hi,

In reference to the above post i would like to add that, 

If i want the same layout as the original zoo but i want to keep the tabs and the new features added to the item page. What all modifications should i make?

 

thanks


  • 0

#5 SmetDenis

SmetDenis

Отправлено 01 July 2013 - 16:29

Thanks. Jbzoo is working perfectly
 
Can the item  layout for the template be changed? Suppose for example, I want the image to be on right on product page and the name of tabs also changed. How can that be possible?
Thanks

You can find templates of materials at this location
\media\zoo\applications\jbuniversal\templates\catalog\renderer\item

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

In reference to the above post i would like to add that, 
If i want the same layout as the original zoo but i want to keep the tabs and the new features added to the item page. What all modifications should i make?

Sorry, what about layouts and features you are talking?
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



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


#6 P.K

P.K

Отправлено 02 July 2013 - 07:28

Hello

Thanks for your reply Denis. I created a new type Mobiles in addition to the the existing jbzoo types. I had assigned the elements but in the full layout the core layout fields like the title, image, properties, meta are the same like original zoo and there are no fields like the product type of jbzoo(for ex tab-gallery, tab-properties). The configuration file mobiles.config is created in the media\zoo\applications\jbuniversal\types but there is no full.php file or any folder for mobiles type at \media\zoo\applications\jbuniversal\templates\catalog\renderer\item. So how can i edit the layout of mobiles type and add the tabs to it?

 

thanks


  • 0

#7 SmetDenis

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


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



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


#8 P.K

P.K

Отправлено 02 July 2013 - 16:04

Hi

The problem is that there is no mobiles folder created in zoo\applications\jbuniversal\templates\catalog\renderer\item\ where i could find the full.php or position.xml

When i added a new layout then only mobiles.config was created in 

media\zoo\applications\jbuniversal\types

And the default zoo layout was applied to it even though it was created using jbzoo in zoo

 

if possible can i mail you the layout what i want?

 

thanks


  • 0

#9 Sliapy

Sliapy

Отправлено 02 July 2013 - 16:24

It would be better not to create a new type but to copy (through the admin panel) the existing one which is the most suitable for your purposes. Then you will be able to rename it. 


Сообщение отредактировал Sliapy: 02 July 2013 - 16:46

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

#10 SmetDenis

SmetDenis

Отправлено 02 July 2013 - 16:29

You can create the missing files.
zoo\applications\jbuniversal\templates\catalog\renderer\item\<ITEM TYPE ALIAS>\full.php

Can you show me current templates structure in your website?
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



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





Click to return to top of page in style!