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


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

Проблема с каталогами


Лучший Ответ Sliapy , 13 January 2014 - 08:45

Как я уже писал - у Вас в файле positions.xml заданы одни позиции, а выводятся в submission.php другие.

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


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

#11 Sliapy

Sliapy

Отправлено 13 January 2014 - 08:34

Так у Вас как минимум разные позиции прописаны в файлах.

 

Дайте полный текст positions.xml, metadata.xml и submission.php


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

#12 lex8xx

lex8xx

Отправлено 13 January 2014 - 08:42

/public_html/media/zoo/applications/jbuniversal/templates/catalog/renderer/item/novosti/positions.xml

<?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
-->
<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="favourite">Favourite</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>

/public_html/media/zoo/applications/jbuniversal/templates/catalog/renderer/item/novosti/metadata.xml

<?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
-->
<metadata>
    <layout name="full">
        <name>Full</name>
        <description>Full layout</description>
    </layout>

    <layout name="teaser" type="related">
        <name>Teaser</name>
        <description>Teaser layout</description>
    </layout>
    <layout name="favorite">
        <name>Favorite</name>
        <description>Layout for element favorite</description>
    </layout>

    <layout name="related" type="related">
        <name>Related</name>
        <description>Related layout</description>
    </layout>
    <layout name="subcategory_item" type="related">
        <name>Subcategory item</name>
        <description>Subcategory item layout</description>
    </layout>

    <layout name="feed">
        <name>Feed</name>
        <description>Feed layout for all kinds of feeds like RSS and Atom.</description>
    </layout>
    <layout name="submission" type="submission">
        <name>Submission</name>
        <description>Submission layout</description>
    </layout>

    <layout name="compare">
        <name>Compare</name>
        <description>Compare item layout</description>
    </layout>
</metadata>

/public_html/media/zoo/applications/jbuniversal/templates/catalog/renderer/item/novosti/submission.php

<?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');

?>

<?php if ($this->checkPosition('content')) : ?>
    <fieldset class="pos-content creation-form">
        <legend><?php echo $item->getType()->name; ?></legend>
        <?php echo $this->renderPosition('content', array('style' => 'submission.block')); ?>
    </fieldset>
<?php endif; ?>

<?php if ($this->checkPosition('media')) : ?>
    <fieldset class="pos-media creation-form">
        <legend><?php echo JText::_('Media'); ?></legend>
        <?php echo $this->renderPosition('media', array('style' => 'submission.block')); ?>
    </fieldset>
<?php endif; ?>

<?php if ($this->checkPosition('meta')) : ?>
    <fieldset class="pos-meta creation-form">
        <legend><?php echo JText::_('Meta'); ?></legend>
        <?php echo $this->renderPosition('meta', array('style' => 'submission.block')); ?>
    </fieldset>
<?php endif; ?>

<?php if ($this->checkPosition('administration')) : ?>
    <fieldset class="pos-administration creation-form">
        <legend><?php echo JText::_('Administration'); ?></legend>
        <?php echo $this->renderPosition('administration', array('style' => 'submission.block')); ?>
    </fieldset>
<?php endif; ?>
<div class="clear clr"></div>

Сообщение отредактировал Sliapy: 13 January 2014 - 08:49
используйте кнопку "Код".

  • 0

#13 Sliapy

Sliapy

Отправлено 13 January 2014 - 08:45   Лучший Ответ

Как я уже писал - у Вас в файле positions.xml заданы одни позиции, а выводятся в submission.php другие.


Сообщение отредактировал Sliapy: 13 January 2014 - 08:50

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

#14 lex8xx

lex8xx

Отправлено 13 January 2014 - 08:59

Еще раз скопирую...
<?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
-->
<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="favourite">Favourite</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>
 
а вот с рабочей подачей
 
<?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
-->
<renderer>


    <positions layout="full">
        <position name="title">Title</position>
        <position name="text">Text</position>
        <position name="image">Image</position>
        <position name="props">Props</position>
        <position name="links">Links</position>
    </positions>


    <positions layout="teaser">
        <position name="title">Title</position>
        <position name="anons">Anons</position>
        <position name="image">Image</position>
        <position name="date">Date</position>
        <position name="author">Author</position>
        <position name="category">Category</position>
    </positions>


    <positions layout="feed">
        <position name="description">Description</position>
    </positions>


    <positions layout="submission">
        <position name="content">Content</position>
        <position name="media">Media</position>
        <position name="meta">Meta</position>
        <position name="administration">Administration</position>
    </positions>


</renderer>

Извините за глупый вопрос, а какой файл исправить?


Сообщение отредактировал Sliapy: 13 January 2014 - 09:44
пожалуйста, пользуйтесь кнопкой "Код"

  • 0

#15 Sliapy

Sliapy

Отправлено 13 January 2014 - 09:48

В файле submission.php у Вас одни позиции. Например, 

 

<?php if ($this->checkPosition('content')) : ?>
    <fieldset class="pos-content creation-form">
        <legend><?php echo $item->getType()->name; ?></legend>
        <?php echo $this->renderPosition('content', array('style' => 'submission.block')); ?>
    </fieldset>
<?php endif; ?>

Здесь "conent" - это и есть позиция.

 

Все эти позиции должны быть обозначены в positions.xml 

 

Сейчас у Вас в файле positions.xml одни позиции и Вы в них в админ.панели назначаете элемента. А на сайте (через файл submission.php) выводятся другие, несуществующие позиции -> на сайте ничего и не выводится.


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




Click to return to top of page in style!