Новости Joomla

Как тестировать Joomla PHP-разработчику? Компонент Patch tester.

👩‍💻 Как тестировать Joomla PHP-разработчику? Компонент Patch tester.Joomla - open source PHP-фреймворк с готовой админкой. Его основная разработка ведётся на GitHub. Для того, чтобы международному сообществу разработчиков было удобнее тестировать Pull Requests был создан компонент Patch Tester, который позволяет "накатить" на текущую установку Joomla именно те изменения, которые необходимо протестировать. На стороне инфраструктуры Joomla для каждого PR собираются готовые пакеты, в которых находится ядро + предложенные изменения. В каждом PR обычно находятся инструкции по тестированию: куда зайти, что нажать, ожидаемый результат. Тестировщики могут предположить дополнительные сценарии, исходя из своего опыта и найти баги, о которых сообщить разработчику. Или не найти, и тогда улучшение или исправление ошибки быстрее войдёт в ядро Joomla. Напомню, что для того, чтобы PR вошёл в ядро Joomla нужны минимум 2 положительных теста от 2 участников сообщества, кроме автора. Видео на YouTubeВидео на VK ВидеоВидео на RuTubeКомпонент на GitHub https://github.com/joomla-extensions/patchtester@joomlafeed#joomla #php #webdev #community

Вышел релиз Revo PageBuilder Toolkit for YOOtheme Pro 1.6

Вышел релиз Revo PageBuilder Toolkit for YOOtheme Pro 1.6.2PageBuilder Toolkit - это специализированный плагин для конструктора страниц Yootheme Pro, содержит набор различных утилит для ускорения процесса работы и отладки макета, множественные улучшения в интерфейсе, включая поддержку dark mode, подсказки, быстрая смена разрешения в окне просмотра и много чего еще.v.1.6.2 Что нового?- Индикатор статусов: теперь не просто показывает состояние запросов, но и делает автоматические попытки их отправки при кратковременных сбоях в сети, а если это не помогло, то переводит конструктор в ручной режим, что позволяет сохранит макет и настройки темы прежде чем вы потеряете все, что было сделано с момента последнего сохранения- Подсветка ошибок в макете: плагин анализирует код страницы и может автоматически подсвечивать data атрибуты с кучей мусора, которые попадают в код страницы при копипасте из Figma в TinyMCE (пригодится для старых макетов, в текущей работе плагин сам очищает код мусора). Также есть подсветка семантических ошибок сборки - дубли h1 тега на странице и вложенных друг в друга заголовков.- Улучшена поддержка будущего релиза Yootheme Pro 5 и редактора CodeMirror 6Плагин для русскоязычных пользователей доступен в каталоге расширений SovMart и распространяется за символическую плату (100р). Разработчики Joomla расширений и партнеры автора могут получить плагин бесплатно.Для работы плагина необходим конструктор страниц Yootheme Pro.Разработчик плагина - участник нашего сообщества Александр Судьбинов (@alexrevo), член официальной группы поддержки Yootheme Pro. Страница расширенияОписание на сайте автора@joomlafeed#joomla #yootheme

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

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Анонс статьи как ссылка
« : 26.06.2011, 14:55:23 »
На странице категория/блог надо убрать ссылки подробнее , а анонс (вступительный текст) сделать ссылкой, никак не получается это реализовать, помогите пожалуйста
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #1 : 28.06.2011, 15:31:32 »
ну неужели никто не сталкивался с такой задачей?
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #2 : 28.06.2011, 15:34:20 »
Нужно править файлик шаблона/html/com_content/blog_item.php
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #3 : 18.07.2011, 11:52:46 »
Нужно править файлик шаблона/html/com_content/blog_item.php

Я к сожалению пока не настолько сильна в php. Если бы кто описал как его править :(
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #4 : 19.07.2011, 12:23:54 »
Стукните в аську вечером - помогу.
Создание сайтов, шаблонов, помощь в решении проблем.
*

Bern

  • Осваиваюсь на форуме
  • 39
  • 0 / 0
Re: Анонс статьи как ссылка
« Ответ #5 : 19.07.2011, 16:03:38 »
в настройках отображения статей
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #6 : 20.07.2011, 14:03:42 »
Цитировать
Я к сожалению пока не настолько сильна в php. Если бы кто описал как его править
Можете тут содержимое выложить. Только кнопочкой вставки кода (#) пользуйтесь...
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #7 : 23.07.2011, 13:02:13 »
Можете тут содержимое выложить. Только кнопочкой вставки кода (#) пользуйтесь...

как я выложу содержимое? папку content выложить? вот страница: http://xn----itbaba1ddbesf3bg0e.com/new.html - текст анонса должен быть ссылкой,
Цитировать
в настройках отображения статей
в настойке статьи нет такой возможности
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #8 : 23.07.2011, 13:19:11 »
Цитировать
как я выложу содержимое?
Открываете файлик, выделяете текст, жмёте правой кнопкой мыши, выбираете копировать.
Переходите на форум, жмете кнопочку код (#), снова правой кнопочкой - вставить.
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #9 : 23.07.2011, 14:05:51 »

Файл blog_item.php 

Код
<?php
/**
* @package   yoo_corona Template
* @file      blog_item.php
* @version   5.5.4 April 2011
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2011 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));

?>

<div class="item">


<?php if ($this->item->params->get('show_email_icon')) : ?>
<div class="icon email"><?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
<div class="icon print"><?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ($this->item->params->get('show_pdf_icon')) : ?>
<div class="icon pdf"><?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>



<?php if ($this->item->params->get('show_title')) : ?>
   
<h1 class="title">   

<?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
<a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>

</h1>
<?php endif; ?>
   
    <?php if ($this->item->params->get('show_create_date')) : ?>
<div class="date">
<div class="month"><?php echo JHTML::_('date', $this->item->created, JText::_('%d&nbsp;%B&nbsp;%Y')); ?>  </div>
</div>
<?php endif; ?>
   
 

<?php if (($this->item->params->get('show_author') && $this->item->author != "") || ($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
<p class="meta">

<?php

if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
JText::printf( 'Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author));
}

echo '. ';

if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
echo JText::_('Posted in').' ';
if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
if ($this->item->params->get('link_section')) echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
echo $this->item->section;
if ($this->item->params->get('link_section')) echo '</a>';
if ($this->item->params->get('show_category')) echo ' - ';
}
if ($this->item->params->get('show_category') && $this->item->catid) {
if ($this->item->params->get('link_category')) echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
echo $this->item->category;
if ($this->item->params->get('link_category')) echo '</a>';
}
}

?>

</p>
<?php endif; ?>

<?php

if (!$this->item->params->get('show_intro')) {
echo $this->item->event->afterDisplayTitle;
}

echo $this->item->event->beforeDisplayContent;

if (isset ($this->item->toc)) {
echo $this->item->toc;
}

?>

<div class="content"><?php echo $this->item->text; ?></div>
   
    <div style="color:#238400;" ><?php if ($this->item->params->get('show_hits')) : ?>
   <?php echo JText::_('HITS')." ".$this->item->hits ?>
<?php endif; ?>  </div>

<?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
<p class="links">
<a class="readmore" href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>">
<span class="readmore-1">
<span class="readmore-2">
<?php

if ($this->item->readmore_register) {
echo JText::_('Register to read more');
} elseif ($readmore = $this->item->params->get('readmore')) {
echo $readmore;
} else {
echo JText::_('Continue Reading');
}

?>
</span>
</span>
</a>
</p>
<?php endif; ?>

<?php if ($canEdit) : ?>
<p class="edit"><?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> <?php echo JText::_('Edit this article.'); ?></p>
<?php endif; ?>

<?php echo $this->item->event->afterDisplayContent; ?>

</div>
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #10 : 23.07.2011, 14:23:38 »
Вы не тот файлик дали. Исправляю ссылку
Нужно править файлик шаблона/html/com_content/category/blog_item.php
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #11 : 23.07.2011, 16:13:25 »
Это все:
templates/yoo_corona/html/com_content/category
Код

<?php
/**
* @package   yoo_corona Template
* @file      blog_item.php
* @version   5.5.4 April 2011
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2011 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// include config and layout
$base = dirname(dirname(dirname(__FILE__)));
include($base.'/config.php');
include($warp->path->path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));


_templates/yoo_corona/layouts/com_content/category__________________________________________________________________
Код
<?php
/**
* @package   yoo_corona Template
* @file      blog_item.php
* @version   5.5.4 April 2011
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2011 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));

?>

<div class="item">


<?php if ($this->item->params->get('show_email_icon')) : ?>
<div class="icon email"><?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
<div class="icon print"><?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ($this->item->params->get('show_pdf_icon')) : ?>
<div class="icon pdf"><?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>



<?php if ($this->item->params->get('show_title')) : ?>
  
<h1 class="title">    

<?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
<a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>

</h1>
<?php endif; ?>
    
    <?php if ($this->item->params->get('show_create_date')) : ?>
<div class="date">
<div class="month"><?php echo JHTML::_('date', $this->item->created, JText::_('%d&nbsp;%B&nbsp;%Y')); ?>  </div>
</div>
<?php endif; ?>
    
  

<?php if (($this->item->params->get('show_author') && $this->item->author != "") || ($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
<p class="meta">

<?php

if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
JText::printf( 'Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author));
}

echo '. ';

if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
echo JText::_('Posted in').' ';
if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
if ($this->item->params->get('link_section')) echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
echo $this->item->section;
if ($this->item->params->get('link_section')) echo '</a>';
if ($this->item->params->get('show_category')) echo ' - ';
}
if ($this->item->params->get('show_category') && $this->item->catid) {
if ($this->item->params->get('link_category')) echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
echo $this->item->category;
if ($this->item->params->get('link_category')) echo '</a>';
}
}

?>

</p>
<?php endif; ?>

<?php

if (!$this->item->params->get('show_intro')) {
echo $this->item->event->afterDisplayTitle;
}

echo $this->item->event->beforeDisplayContent;

if (isset ($this->item->toc)) {
echo $this->item->toc;
}

?>

<div class="content"><?php echo $this->item->text; ?></div>
    
    <div style="color:#238400;" ><?php if ($this->item->params->get('show_hits')) : ?>
   <?php echo JText::_('HITS')." ".$this->item->hits ?>
<?php endif; ?>  </div>

<?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
<p class="links">
<a class="readmore" href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>">
<span class="readmore-1">
<span class="readmore-2">
<?php

if ($this->item->readmore_register) {
echo JText::_('Register to read more');
} elseif ($readmore = $this->item->params->get('readmore')) {
echo $readmore;
} else {
echo JText::_('Continue Reading');
}

?>
</span>
</span>
</a>
</p>
<?php endif; ?>

<?php if ($canEdit) : ?>
<p class="edit"><?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> <?php echo JText::_('Edit this article.'); ?></p>
<?php endif; ?>

<?php echo $this->item->event->afterDisplayContent; ?>

</div>
« Последнее редактирование: 23.07.2011, 16:20:46 от tati-2000 »
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #12 : 23.07.2011, 16:19:44 »
ещё один : templates/yoo_corona/warp/sistems/joomla1.5/layouts/com_content/category   
Код


<?php
/**
* @package   Warp Theme Framework
* @file      blog_item.php
* @version   5.5.15
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright  2007 - 2011 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));

?>

<div class="item">

<?php if ($this->item->params->get('show_email_icon')) : ?>
<div class="icon email"><?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
<div class="icon print"><?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ($this->item->params->get('show_pdf_icon')) : ?>
<div class="icon pdf"><?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ($this->item->params->get('show_title')) : ?>
<h1 class="title">

<?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
<a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>

</h1>
<?php endif; ?>

<?php if ($this->item->params->get('show_create_date') || ($this->item->params->get('show_author') && $this->item->author != "") || ($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
<p class="meta">

<?php

if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
JText::printf( 'Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author));
}

if ($this->item->params->get('show_create_date')) {
echo ' '.JText::_('on').' '.JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'));
}

echo '. ';

if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
echo JText::_('Posted in').' ';
if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
if ($this->item->params->get('link_section')) echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
echo $this->item->section;
if ($this->item->params->get('link_section')) echo '</a>';
if ($this->item->params->get('show_category')) echo ' - ';
}
if ($this->item->params->get('show_category') && $this->item->catid) {
if ($this->item->params->get('link_category')) echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
echo $this->item->category;
if ($this->item->params->get('link_category')) echo '</a>';
}
}

?>

</p>
<?php endif; ?>

<?php

if (!$this->item->params->get('show_intro')) {
echo $this->item->event->afterDisplayTitle;
}

echo $this->item->event->beforeDisplayContent;

if (isset ($this->item->toc)) {
echo $this->item->toc;
}

?>

<div class="content"><?php echo $this->item->text; ?></div>

<?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
<p class="links">
<a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>">
<?php

if ($this->item->readmore_register) {
echo JText::_('Register to read more');
} elseif ($readmore = $this->item->params->get('readmore')) {
echo $readmore;
} else {
echo JText::_('Continue Reading');
}

?>
</a>
</p>
<?php endif; ?>

<?php if ($canEdit) : ?>
<p class="edit"><?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> <?php echo JText::_('Edit this article.'); ?></p>
<?php endif; ?>

<?php echo $this->item->event->afterDisplayContent; ?>

</div>
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #13 : 23.07.2011, 16:23:36 »
А ссылку на сайт дать можете?
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Анонс статьи как ссылка
« Ответ #15 : 23.07.2011, 21:11:45 »
Вот этот код вставьте, только не знаю, в какой из этих файлов. (полностью замените содержимое)
Код
<?php
/**
* @package   yoo_corona Template
* @file      blog_item.php
* @version   5.5.4 April 2011
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2011 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));

?>

<div class="item">


<?php if ($this->item->params->get('show_email_icon')) : ?>
<div class="icon email"><?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
<div class="icon print"><?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>

<?php if ($this->item->params->get('show_pdf_icon')) : ?>
<div class="icon pdf"><?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?></div>
<?php endif; ?>



<?php if ($this->item->params->get('show_title')) : ?>
   
<h1 class="title">   

<?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
<a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>"><?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>

</h1>
<?php endif; ?>
   
    <?php if ($this->item->params->get('show_create_date')) : ?>
<div class="date">
<div class="month"><?php echo JHTML::_('date', $this->item->created, JText::_('%d&nbsp;%B&nbsp;%Y')); ?>  </div>
</div>
<?php endif; ?>
   
 

<?php if (($this->item->params->get('show_author') && $this->item->author != "") || ($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
<p class="meta">

<?php

if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
JText::printf( 'Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author));
}

echo '. ';

if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
echo JText::_('Posted in').' ';
if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
if ($this->item->params->get('link_section')) echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
echo $this->item->section;
if ($this->item->params->get('link_section')) echo '</a>';
if ($this->item->params->get('show_category')) echo ' - ';
}
if ($this->item->params->get('show_category') && $this->item->catid) {
if ($this->item->params->get('link_category')) echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
echo $this->item->category;
if ($this->item->params->get('link_category')) echo '</a>';
}
}

?>

</p>
<?php endif; ?>

<?php

if (!$this->item->params->get('show_intro')) {
echo $this->item->event->afterDisplayTitle;
}

echo $this->item->event->beforeDisplayContent;

if (isset ($this->item->toc)) {
echo $this->item->toc;
}

?>

<div class="content"><a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>"><?php echo $this->item->text; ?></a></div>
   
    <div style="color:#238400;" ><?php if ($this->item->params->get('show_hits')) : ?>
   <?php echo JText::_('HITS')." ".$this->item->hits ?>
<?php endif; ?>  </div>

<?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
<p class="links">
<a class="readmore" href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>">
<span class="readmore-1">
<span class="readmore-2">
<?php

if ($this->item->readmore_register) {
echo JText::_('Register to read more');
} elseif ($readmore = $this->item->params->get('readmore')) {
echo $readmore;
} else {
echo JText::_('Continue Reading');
}

?>
</span>
</span>
</a>
</p>
<?php endif; ?>

<?php if ($canEdit) : ?>
<p class="edit"><?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> <?php echo JText::_('Edit this article.'); ?></p>
<?php endif; ?>

<?php echo $this->item->event->afterDisplayContent; ?>

</div>
Создание сайтов, шаблонов, помощь в решении проблем.
*

tati-2000

  • Захожу иногда
  • 308
  • 2 / 0
Re: Анонс статьи как ссылка
« Ответ #16 : 23.07.2011, 22:09:13 »
поменяла, во всех файлах по очереди, последний файл не стоит трогать , безрезультатно
А вот замена первых двух дала странный результат:  http://xn----itbaba1ddbesf3bg0e.com/new.html   - анонс стал ссылкой только у первой и девятой статьи, на странице http://xn----itbaba1ddbesf3bg0e.com/newarticle22.html  - ни один анонс не стал ссылкой

пробовала отформатировать другие статьи как первую, ничего не дало
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Откуда взялась ссылка?)

Автор robotwerder

Ответов: 15
Просмотров: 6798
Последний ответ 26.05.2022, 08:40:37
от Thomas Bergersen
Не работают элементы в режиме создания статьи

Автор ipRazor

Ответов: 17
Просмотров: 4384
Последний ответ 10.08.2016, 10:36:39
от SeBun
Как убрать (скрыть) количество просмотров для определенной статьи?

Автор egoz

Ответов: 10
Просмотров: 12484
Последний ответ 10.05.2015, 06:11:47
от vipiusss
Ссылка на новости иногда выходит на другую страницу

Автор adiantum

Ответов: 3
Просмотров: 1850
Последний ответ 25.04.2015, 13:31:42
от vipiusss
Не приходит ссылка с активацией пользователя в mod_login, но сама почта приходит

Автор pinkfloyd

Ответов: 3
Просмотров: 4040
Последний ответ 12.12.2014, 20:45:05
от Sanita