Добрый вечер! Возникла такая потребность... Вывод каждого параметра статьи отображается в отдельную строку и сверху. Хотелось бы все в одну строчку с разделителем и желательно справа снизу. Ну и если можна одним стилем CSS. HTML фрагмента <table class="contentpaneopen"> <tr> <td> <span> <a href="/news.html"> Статьи </a> </span> </td> </tr> <tr> <td width="70%" valign="top" colspan="2"> <span class="small"> Автор: <a href="http://www.uniqinfo.net/component/comprofiler/userprofile/Milton.html">Михаил</a> </span> </td> </tr> <tr> <td valign="top" colspan="2" class="createdate"> 27.07.2009 12:27 </td> </tr> PHP index-a шаблона <div id="main_content" > <jdoc:include type="message" /> <jdoc:include type="component" /> </div></td> </tr> <?php if ($colspan > 0) { ?> <tr align="center"> <?php if ( $user1 > 0 ) { ?> <td width="50%"><div id="user1_outer"> <div class="user1_inner"> <jdoc:include type="modules" name="user1" style="xhtml" /> </div> Нашел вроде в файле ...\modules\mod_newsflash\tmpl\_item.php но не знаю что тут именно менять? код _item.php <?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> <?php if ($params->get('item_title')) : ?> <table class="contentpaneopen<?php echo $params->get( 'moduleclass_sfx' ); ?>"> <tr> <td class="contentheading<?php echo $params->get( 'moduleclass_sfx' ); ?>" width="100%"> <?php if ($params->get('link_titles') && $item->linkOn != '') : ?> <a href="<?php echo $item->linkOn;?>" class="contentpagetitle<?php echo $params->get( 'moduleclass_sfx' ); ?>"> <?php echo $item->title;?></a> <?php else : ?> <?php echo $item->title; ?> <?php endif; ?> </td> </tr> </table> <?php endif; ?> <?php if (!$params->get('intro_only')) : echo $item->afterDisplayTitle; endif; ?> <?php echo $item->beforeDisplayContent; ?> <table class="contentpaneopen<?php echo $params->get( 'moduleclass_sfx' ); ?>"> <tr> <td valign="top" ><?php echo $item->text; ?></td> </tr> <tr> <td valign="top" > <?php if (isset($item->linkOn) && $item->readmore && $params->get('readmore')) : echo '<a class="readmore" href="'.$item->linkOn.'">'.$item->linkText.'</a>'; endif; ?> </td> </tr> </table> Сайт http://www.uniqinfo.net Заранее спасибо за помощь!
Я бы сказал, что в шаблон надо добавить html/com_content/article/default.php переделанный из: components/com_content/views/article/tmpl/default.php Не уверен на 100%... Переделывал список категорий приблизительно также
Захотелось мне изменить вид списка статей в категории. Копирую «/components/com_content/views/category/tmpl/default_items.php» в «/templates/mytemplate/html/com_content/category/default_items.php», меняю его как хочу. Например удалил «фильтр» и «показывать по {страниц}». В вашем случае ,думаю, надо ковырять /components/com_content/views/section/tmpl/blog_item.php или /components/com_content/views/frontpage/tmpl/default_item.php или /components/com_content/views/category/tmpl/blog_item.php Или все вышеперечисленные. Переделывать наверное это: Код (PHP): <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?> <tr> <td> <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->section->title)) : ?> <span> <?php if ($this->item->params->get('link_section')) : ?> <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?> <?php endif; ?> <?php echo $this->escape($this->section->title); ?> <?php if ($this->item->params->get('link_section')) : ?> <?php echo '</a>'; ?> <?php endif; ?> <?php if ($this->item->params->get('show_category')) : ?> <?php echo ' - '; ?> <?php endif; ?> </span> <?php endif; ?> <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?> <span> <?php if ($this->item->params->get('link_category')) : ?> <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?> <?php endif; ?> <?php echo $this->escape($this->item->category); ?> <?php if ($this->item->params->get('link_category')) : ?> <?php echo '</a>'; ?> <?php endif; ?> </span> <?php endif; ?> </td> </tr> <?php endif; ?> <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?> <tr> <td width="70%" valign="top" colspan="2"> <span class="small"> <?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?> </span> </td> </tr> <?php endif; ?> <?php if ($this->item->params->get('show_create_date')) : ?> <tr> <td valign="top" colspan="2" class="createdate"> <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?> </td> </tr> <?php endif; ?> <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?> <tr> <td valign="top" colspan="2"> <a href="http://<?php echo $this->escape($this->item->urls) ; ?>" target="_blank"> <?php echo $this->escape($this->item->urls); ?></a> </td> </tr> <?php endif; ?> ...или мы, действительно, не понимаем друг друга