Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 875 Просмотров
*

Dolphin4ik_1

  • Захожу иногда
  • 433
  • 3 / 2
Undefined property: stdClass::$publish_up in/templates/mytmpl/html/com_tags/tag/default_items.php on line 86

Ошибка выше.

не видит дпату публикации в коде тэгов. вот весь код
Код
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_tags
 *
 * [member=126442]copyright[/member]   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen', 'select');

// Get the user object.
$user = JFactory::getUser();

// Check if user is allowed to add/edit based on tags permissions.
// Do we really have to make it so people can see unpublished tags?
$canEdit      = $user->authorise('core.edit', 'com_tags');
$canCreate    = $user->authorise('core.create', 'com_tags');
$canEditState = $user->authorise('core.edit.state', 'com_tags');

JFactory::getDocument()->addScriptDeclaration("
var resetFilter = function() {
document.getElementById('filter-search').value = '';
}
");

?>
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm" class="form-inline">
<?php if ($this->params->get('show_headings') || $this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="filters btn-toolbar col-md-12 col-12">
<?php if ($this->params->get('filter_field')) : ?>
<div class="btn-group">
<label class="filter-search-lbl element-invisible col-md-3" for="filter-search">
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'). '&#160;'; ?>
</label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox col-md-4" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
<button type="button" name="filter-search-button" title="<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>" onclick="document.adminForm.submit();" class="btn">
<div id="searchicon"></div>
</button>
<button type="reset" name="filter-clear-button" title="<?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?>" class="btn" onclick="resetFilter(); document.adminForm.submit();">
<span class="icon-remove">Очистить</span>
</button>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>
<div class="btn-group pull-right">
<label for="limit" class="element-invisible">
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
</label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>
<input type="hidden" name="filter_order" value="" />
<input type="hidden" name="filter_order_Dir" value="" />
<input type="hidden" name="limitstart" value="" />
<input type="hidden" name="task" value="" />
<div class="clearfix"></div>
</fieldset>
<?php endif; ?>
<?php if (empty($this->items)) : ?>
<p><?php echo JText::_('COM_TAGS_NO_ITEMS'); ?></p>
<?php else : ?>
<ul class="category list-striped">
<?php foreach ($this->items as $i => $item) : ?>
<?php if ($item->core_state == 0) : ?>
<li class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<li class="cat-list-row<?php echo $i % 2; ?> medv_tag clearfix">
<?php endif; ?>
<?php if (($item->type_alias === 'com_users.category') || ($item->type_alias === 'com_banners.category')) : ?>
<h3>
<?php echo $this->escape($item->core_title); ?>
</h3>
<span class="date light ml-0">
<?php echo JHtml::_('date',$this->escape($item->publish_up), JText::_('d.m.Y'));?>
</span>
<?php else : ?>
<h3>
<a href="<?php echo JRoute::_($item->link); ?>">
<?php echo $this->escape($item->core_title); ?>
</a>
</h3>
<?php echo JHtml::_('date', $this->escape($item->publish_up), JText::_('d.m.Y'));?>
<?php endif; ?>
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
<?php echo $item->event->afterDisplayTitle; ?>
<?php $images = json_decode($item->core_images); ?>
<?php if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) : ?>
<a href="<?php echo JRoute::_($item->link); ?>">
<img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>">
</a>
<?php endif; ?>
<?php if ($this->params->get('tag_list_show_item_description', 1)) : ?>
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
<?php echo $item->event->beforeDisplayContent; ?>
<span class="tag-body">
<?php echo JHtml::_('string.truncate', $item->core_body, $this->params->get('tag_list_item_maximum_characters')); ?>
</span>
<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
<?php echo $item->event->afterDisplayContent; ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</form>
Подскажите что давить в начало
« Последнее редактирование: 31.08.2020, 17:38:03 от Dolphin4ik_1 »
*

Dolphin4ik_1

  • Захожу иногда
  • 433
  • 3 / 2
Может подскажете что прописать ?
*

draff

  • Гуру
  • 5803
  • 434 / 7
  • ищу работу
А проверить что есть в
Код
 <?php foreach ($this->items as $i => $item) : ?>
<?php echo "<pre>";var_dump($item);echo "</pre>"; ?>
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Нет кнопки &quot;Создать&quot; в компоненте Banners

Автор elenaburd

Ответов: 0
Просмотров: 419
Последний ответ 24.02.2021, 13:19:06
от elenaburd
Error: Failed to start application: Undefined class constant 'scheme'

Автор help-tend

Ответов: 15
Просмотров: 832
Последний ответ 10.09.2020, 18:06:57
от help-tend
Как сделать переадресацию в компоненте?

Автор leha111

Ответов: 2
Просмотров: 667
Последний ответ 16.04.2020, 14:50:30
от sivers
Call to undefined function mysql_escape_string() Обновил до Joomla 3.7.0

Автор Alexhelp

Ответов: 26
Просмотров: 4374
Последний ответ 25.12.2019, 08:05:39
от Igor_ch
Ошибка: Call to undefined function wbStartsWith()

Автор drVadz

Ответов: 0
Просмотров: 853
Последний ответ 04.12.2019, 00:45:24
от drVadz