Jump to content


Photo
- - - - -

Некорректный вывод агента


Best Answer vitgof , 10 February 2014 - 18:27

я разобрался ))) спасибо, там в поле "расположение" было "имя элемента" вместо "related".... 

Go to the full post


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

#1 vitgof

vitgof
  • JBZoo User (rus)
  • User rate: 0
  • posts: 116
  • topics: 28

Posted 10 February 2014 - 10:52

Добрый день!

 

У меня семь типов, с одинаковыми настройками вывода информации об агенте в табе (item -> flat). Но один из них выводится некорректно, уже несколько дней потратил - не могу понять где глюк... ((((

 

Вот ссылка на корректный (таб - "как связаться")

 

http://buypuppy.com....am/dzhek-2.html

 

2.jpg

 

вот некорректный (таб - "как связаться")

 

http://buypuppy.com....erer/kuzma.html

 

1.jpg

 

Помогите пожалуйста разобраться

 

 

 


  • 0

#2 Sliapy

Sliapy
  • JBZoo User (rus)
  • User rate: 50.6
  • posts: 6393
  • topics: 15

Posted 10 February 2014 - 12:00

Не вижу даже в коде ни формы обратной связи, ни логотипов, ни телефонов. Уверены, что у Вас везде одинаковый вывод в full.php и одинаковое содержание файлов positions.xml?


Edited by Sliapy, 10 February 2014 - 12:01.

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

#3 vitgof

vitgof
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 116
  • topics: 28

Posted 10 February 2014 - 16:47

это тот что нормально работает 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');


$tabsId = uniqid('jbzoo-tabs-');


?>
<?php $map = JString::trim($this->renderPosition('map')); ?>
<?php if ($this->checkPosition('title')) : ?>
    <h1 class="title"><?php echo $this->renderPosition('title'); ?></h1>
<?php endif; ?>
<div class="clearfix top-info">
    <?php if ($this->checkPosition('gallery')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('gallery'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            <div class="price-flat clearfix">


                <?php echo $this->renderPosition('price'); ?>
            </div>
            <ul class="properties">
                <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
            </ul>
            <div class="favourite">
                <?php echo $this->renderPosition('favourite'); ?>
            </div>
        <?php endif; ?>
    </div>
</div>


<?php echo $this->renderPosition('social', array('style' => 'jbblock')); ?>




<div class="clear clr"></div>


<div id="<?php echo $tabsId; ?>">
    <ul>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-overview">Описание щенка</a></li>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-father">Отец</a></li>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-mother">Мать</a></li>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-image_pedegree">Родословная</a></li>
        <?php if ($map) : ?>
            <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-location">Местонахождение</a></li><?php endif; ?>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-agent">Как связаться</a></li>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-comments">Комментарии</a></li>
    </ul>


    <div id="tab-overview">
        <div class="full-info-realty">
            <?php if ($this->checkPosition('text')) : ?>
                <div class="text-property description-block">
                    <h3>Общая информация</h3>
                    <?php echo $this->renderPosition('text'); ?>
                </div>
            <?php endif; ?>




            <?php if ($this->checkPosition('related')) : ?>
                <h3>Похожие объявления</h3>
                <div class="related-property">
                    <?php echo $this->renderPosition('related'); ?>
                </div>
            <?php endif; ?>
        </div>




        <div class="clear clr"></div>
    </div>


<?php if ($this->checkPosition('tab-image')) : ?>
            <div id="tab-gallery"><?php echo $this->renderPosition('tab-image', $positionParams); ?></div>
        <?php endif; ?>




    <div id="tab-agent">
        <div class="agent-description description-block">
            <?php echo $this->renderPosition('agent'); ?>
        </div>
    </div>


<div id="tab-father">




<div class="clearfix top-info">
    <?php if ($this->checkPosition('fatherphoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('fatherphoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('fathername', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
        
    </div>


<div id="tab-mother">
        <div class="clearfix top-info">
    <?php if ($this->checkPosition('motherphoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('motherphoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('mothername', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
</div>


<div id="tab-image_pedegree">
        <div class="clearfix top-info">
    <?php if ($this->checkPosition('pedegreephoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('pedegreephoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('pedegreename', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
    </div>






<div id="tab-image_parents">
        <div class="agent-description description-block">
            <?php echo $this->renderPosition('parents'); ?>
        </div>
    </div>










    <?php if ($map) : ?>
        <div id="tab-location">
            <?php echo $this->renderPosition('map'); ?>
        </div>
    <?php endif; ?>
    <div id="tab-comments">
        <div class="comments-property">
            <?php echo $this->renderPosition('comments'); ?>
        </div>
    </div>
</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>
 
 
 
Position (нормально работающего)
 
<?xml version="1.0" encoding="utf-8"?>
<!--
    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>
-->
<renderer>
<positions layout="full">
<position name="title">Title</position>
<position name="gallery">Gallery</position>
<position name="text">Text</position>
<position name="properties">Properties</position>
<position name="price">Price</position>
<position name="agent">Agent</position>
<position name="map">Map</position>
<position name="father">Father</position>
                <position name="fathername">Fathername</position>
                <position name="fatherphoto">Fatherphoto</position>
                <position name="mother">Mother</position>
                <position name="mothername">Mothername</position>
                <position name="motherphoto">Motherphoto</position>
<position name="pedegree">Pedegree</position>
<position name="pedegreenote">Pedegreenote</position>
<position name="pedegreephoto">Pedegreephoto</position>
<position name="favourite">Favourite</position>
<position name="social">Social</position>
<position name="related">Related</position>
<position name="comments">Comments</position>
</positions>


    
<positions layout="teaser">
         <position name="image">Image</position>
        <position name="price">Price</position>
        <position name="beds">Beds</position>
        <position name="baths">Baths</position>
        <position name="address">Address</position>
        <position name="year">Year Built</position>
        <position name="sqft">Sq Ft</position>
        <position name="save">Save</position>
        <position name="additionally">Additionally</position>
        <position name="type">Type</position>
        <position name="agent">Agent</position>
        <position name="compare">Compare</position>
        <position name="date">Date</position>
        <position name="marked">Marked</position>
</positions>
    
    <positions layout="submission">
        <position name="main">Main</position>
        <position name="properties">Properties</position>
<position name="father">Father</position>
                <position name="mother">Mother</position>
<position name="pedegree">Pedegree</position>
    </positions>
    
    <positions layout="related">
        <position name="main">Main</position>
        <position name="properties">Properties</position>
    </positions>
    <positions layout="compare">
        <position name="fields">Fields</position>
    </positions>    
 <positions layout="favorite">
        <position name="title">Title</position>
        <position name="image">Image</position>
        <position name="properties">Properties</position>
        <position name="text">Text</position>
        <position name="meta">Meta</position>
    </positions>
</renderer>
 
 
 
А этот который, создан по подобию, но не работает (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');


$tabsId = uniqid('jbzoo-tabs-');


?>
<?php $map = JString::trim($this->renderPosition('map')); ?>
<?php if ($this->checkPosition('title')) : ?>
    <h1 class="title"><?php echo $this->renderPosition('title'); ?></h1>
<?php endif; ?>
<div class="clearfix top-info">
    <?php if ($this->checkPosition('gallery')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('gallery'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            <div class="price-flat clearfix">


                <?php echo $this->renderPosition('price'); ?>
            </div>
            <ul class="properties">
                <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
            </ul>
            <div class="favourite">
                <?php echo $this->renderPosition('favourite'); ?>
            </div>
        <?php endif; ?>
    </div>
</div>


<?php echo $this->renderPosition('social', array('style' => 'jbblock')); ?>


<div class="clear clr"></div>


<div id="<?php echo $tabsId; ?>">
    <ul>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-overview">Описание щенка</a></li>
        <?php if ($map) : ?>
            <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-location">Местонахождение</a></li><?php endif; ?>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-agent">Как связаться</a></li>
        <li><a href="<?php echo JUri::getInstance()->toString(); ?>#tab-comments">Комментарии</a></li>
    </ul>


    <div id="tab-overview">
        <div class="full-info-realty">
            <?php if ($this->checkPosition('text')) : ?>
                <div class="text-property description-block">
                    <h3>Общая информация</h3>
                    <?php echo $this->renderPosition('text'); ?>


        <?php if ($this->checkPosition('additional')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('additional', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>


                </div>
            <?php endif; ?>


    




            <?php if ($this->checkPosition('related')) : ?>
                <h3>Похожие объявления</h3>
                <div class="related-property">
                    <?php echo $this->renderPosition('related'); ?>
                </div>
            <?php endif; ?>
        </div>




        <div class="clear clr"></div>
    </div>


<?php if ($this->checkPosition('tab-image')) : ?>
            <div id="tab-gallery"><?php echo $this->renderPosition('tab-image', $positionParams); ?></div>
        <?php endif; ?>




    <div id="tab-agent">
        <div class="agent-description description-block">
            <?php echo $this->renderPosition('agent'); ?>
        </div>
    </div>


<div id="tab-father">




<div class="clearfix top-info">
    <?php if ($this->checkPosition('fatherphoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('fatherphoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('fathername', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
        
    </div>


<div id="tab-mother">
        <div class="clearfix top-info">
    <?php if ($this->checkPosition('motherphoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('motherphoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('mothername', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
</div>


<div id="tab-image_pedegree">
        <div class="clearfix top-info">
    <?php if ($this->checkPosition('pedegreephoto')) : ?>
        <div class="full-gallery">
            <?php echo $this->renderPosition('pedegreephoto'); ?>
        </div>
    <?php endif; ?>
    <div class="features">
        <?php if ($this->checkPosition('properties')) : ?>
            
            <ul class="properties">
                <?php echo $this->renderPosition('pedegreename', array('style' => 'list')); ?>
            </ul>
         
        <?php endif; ?>
    </div>
</div>
    </div>






<div id="tab-image_parents">
        <div class="agent-description description-block">
            <?php echo $this->renderPosition('parents'); ?>
        </div>
    </div>










    <?php if ($map) : ?>
        <div id="tab-location">
            <?php echo $this->renderPosition('map'); ?>
        </div>
    <?php endif; ?>
    <div id="tab-comments">
        <div class="comments-property">
            <?php echo $this->renderPosition('comments'); ?>
        </div>
    </div>
</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>
 
position
 
 
<?xml version="1.0" encoding="utf-8"?>
<!--
    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>
-->
<renderer>
<positions layout="full">
<position name="title">Title</position>
<position name="gallery">Gallery</position>
<position name="text">Text</position>
<position name="properties">Properties</position>
<position name="price">Price</position>
<position name="agent">Agent</position>
<position name="map">Map</position>
<position name="additional">Additional</position>
<position name="favourite">Favourite</position>
<position name="social">Social</position>
<position name="related">Related</position>
<position name="comments">Comments</position>
</positions>


    
<positions layout="teaser">
         <position name="image">Image</position>
        <position name="price">Price</position>
        <position name="beds">Beds</position>
        <position name="baths">Baths</position>
        <position name="address">Address</position>
        <position name="year">Year Built</position>
        <position name="sqft">Sq Ft</position>
        <position name="save">Save</position>
        <position name="additionally">Additionally</position>
        <position name="type">Type</position>
        <position name="agent">Agent</position>
        <position name="compare">Compare</position>
        <position name="date">Date</position>
        <position name="marked">Marked</position>
</positions>
    
    <positions layout="submission">
        <position name="main">Main</position>
        <position name="properties">Properties</position>
    </positions>
    
    <positions layout="related">
        <position name="main">Main</position>
        <position name="properties">Properties</position>
    </positions>
    <positions layout="compare">
        <position name="fields">Fields</position>
    </positions>    
 <positions layout="favorite">
        <position name="title">Title</position>
        <position name="image">Image</position>
        <position name="properties">Properties</position>
        <position name="text">Text</position>
        <position name="meta">Meta</position>
    </positions>
</renderer>
 
 

Edited by Sliapy, 10 February 2014 - 16:55.
ИСПОЛЬЗУЙТЕ КНОПКУ "КОД" РЕДАКТОРА

  • 0

#4 Sliapy

Sliapy
  • JBZoo User (rus)
  • User rate: 50.6
  • posts: 6393
  • topics: 15

Posted 10 February 2014 - 17:01

Затрудняюсь что-то сказать по коду. Дайте скриншот настроек шаблона full из обоих типов.


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

#5 vitgof

vitgof
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 116
  • topics: 28

Posted 10 February 2014 - 18:27   Best Answer

я разобрался ))) спасибо, там в поле "расположение" было "имя элемента" вместо "related".... 


  • 0




Click to return to top of page in style!