Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • aryentain99 Friend
    #200958

    Hi guys, i’m using the core joomla archive list http://www.arquespalacio.com.ar/saracatu/index.php/noticias/archivo-de-noticias
    to display 15 years of articles, but it doesn’t look as good as the search results, my question: is it possible to make the archive results look like the search results (i really love that look):

    Many thanks as always!


    1. buscar
    chavan Friend
    #547785

    Lets give a try

    Backup this file : pluginssystemt3basehtmlcom_contentarchivedefault_items.php

    Open it, remove all the code and replace it with this code

    [PHP]<?php
    /**
    * @package Joomla.Site
    * @subpackage com_content
    *
    * @copyright Copyright (C) 2005 – 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined(‘_JEXEC’) or die;

    JHtml::addIncludePath(JPATH_COMPONENT . ‘/helpers’);
    JHtml::addIncludePath(T3_PATH . ‘/html/com_content’);
    JHtml::addIncludePath(dirname(dirname(__FILE__)));
    $params = $this->params;
    ?>
    <div id=”archive-items”>
    <dl class=”search-results<?php echo $this->pageclass_sfx; ?>”>
    <?php foreach ($this->items as $i => $item) : ?>
    <dt class=”result-title”>
    <?php echo $this->pagination->limitstart + ($i+1).’. ‘;?>
    <?php if ($params->get(‘link_titles’)): ?>
    <a href=”<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug)); ?>”> <?php echo $this->escape($item->title); ?></a>
    <?php else: ?>
    <?php echo $this->escape($item->title); ?>
    <?php endif; ?>
    </dt>
    <?php if ($item->category_title) : ?>
    <dd class=”result-category”>
    <span class=”small<?php echo $this->pageclass_sfx; ?>”>
    (<?php $title = $this->escape($item->category_title);
    $url = ” . $title . ”; ?>
    <?php if ($params->get(‘link_category’) && $item->catslug) : ?>
    <?php echo JText::sprintf(‘COM_CONTENT_CATEGORY’, ” . $url . ”); ?>
    <?php else : ?>
    <?php echo JText::sprintf(‘COM_CONTENT_CATEGORY’, ” . $title . ”); ?>
    <?php endif; ?> )
    </span>
    </dd>
    <?php endif; ?>
    <dd class=”result-text”>
    <?php echo JHtml::_(‘string.truncate’, $item->introtext, $params->get(‘introtext_limit’)); ?>
    </dd>
    <?php //if ($this->params->get(‘show_date’)) : ?>
    <dd class=”result-created<?php echo $this->pageclass_sfx; ?>”>
    <?php echo JText::sprintf(‘JGLOBAL_CREATED_DATE_ON’, ” . JHtml::_(‘date’, $item->created, JText::_(‘DATE_FORMAT_LC3’)) . ”); ?>
    </dd>
    <?php //endif; ?>
    <?php endforeach; ?>
    </dl>
    </div>
    <div class=”pagination”>
    <p class=”counter”> <?php echo $this->pagination->getPagesCounter(); ?> </p>
    <?php echo $this->pagination->getPagesLinks(); ?>
    </div>

    [/PHP]

    aryentain99 Friend
    #547852

    Thanks for your reply,, nop, i got a blank screen with the month and year filter only.

    chavan Friend
    #547863

    can you please post your site ftp details and admin details via Private message. I will fix it for you .

    aryentain99 Friend
    #547901

    thanks for your help, the requested info was sent.

    chavan Friend
    #547930

    I have fixed it for you, please check your site and confirm

    aryentain99 Friend
    #547947

    Many thanks Chavan, it looks so good! I have some minor questions, Is it possible to avoid showing any image from the article and any text with other format? The right column (position 7 and 5) seems to be displayed bellow the content take a look: http://www.arquespalacio.com.ar/saracatu/index.php/noticias/archivo-de-noticias , how could i fix this? Thanks again!

    chavan Friend
    #547953

    Remove the complete code and replace with this

    [PHP]<?php
    /**
    * @package Joomla.Site
    * @subpackage com_content
    *
    * @copyright Copyright (C) 2005 – 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined(‘_JEXEC’) or die;

    JHtml::addIncludePath(JPATH_COMPONENT . ‘/helpers’);
    JHtml::addIncludePath(T3_PATH . ‘/html/com_content’);
    JHtml::addIncludePath(dirname(dirname(__FILE__)));
    $params = $this->params;
    ?>
    <div id=”archive-items”>
    <dl class=”search-results<?php echo $this->pageclass_sfx; ?>”>
    <?php foreach ($this->items as $i => $item) : ?>
    <dt class=”result-title”>
    <?php echo $this->pagination->limitstart + ($i+1).’. ‘;?>
    <?php if ($params->get(‘link_titles’)): ?>
    <a href=”<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug)); ?>”> <?php echo $this->escape($item->title); ?></a>
    <?php else: ?>
    <?php echo $this->escape($item->title); ?>
    <?php endif; ?>
    </dt>
    <?php if ($item->category_title) : ?>
    <dd class=”result-category”>
    <span class=”small<?php echo $this->pageclass_sfx; ?>”>
    (<?php $title = $this->escape($item->category_title);
    $url = ” . $title . ”; ?>
    <?php if ($params->get(‘link_category’) && $item->catslug) : ?>
    <?php echo JText::sprintf(‘COM_CONTENT_CATEGORY’, ” . $url . ”); ?>
    <?php else : ?>
    <?php echo JText::sprintf(‘COM_CONTENT_CATEGORY’, ” . $title . ”); ?>
    <?php endif; ?> )
    </span>
    </dd>
    <?php endif; ?>
    <dd class=”result-text”>
    <?php echo JHtml::_(‘string.truncate’, strip_tags($item->introtext), $params->get(‘introtext_limit’)); ?>
    </dd>
    <?php //if ($this->params->get(‘show_date’)) : ?>
    <dd class=”result-created<?php echo $this->pageclass_sfx; ?>”>
    <?php echo JText::sprintf(‘JGLOBAL_CREATED_DATE_ON’, ” . JHtml::_(‘date’, $item->created, JText::_(‘DATE_FORMAT_LC3’)) . ”); ?>
    </dd>
    <?php //endif; ?>
    <?php endforeach; ?>
    </dl>
    </div>
    <div class=”pagination”>
    <p class=”counter”> <?php echo $this->pagination->getPagesCounter(); ?> </p>
    <?php echo $this->pagination->getPagesLinks(); ?>
    </div>[/PHP]

    aryentain99 Friend
    #547958

    Now everything looks really fantastic. Many thanks Chavan, this modification of yours may be applied to the next Mitius release, even the online demo. Many thanks!

    chavan Friend
    #547960

    This is a kind of customization. If it is been asked by many . It will be applied.

    aryentain99 Friend
    #553727

    Could you provide me with the other file changes? since it seems in a template or t3 update i lost those changes. Many thanks.

    aryentain99 Friend
    #554028

    <em>@aryentain99 451083 wrote:</em><blockquote>Could you provide me with the other file changes? since it seems in a template or t3 update i lost those changes. Many thanks.</blockquote>

    I apply the code but i got a white screen with the archive. month / year dropbox

    aryentain99 Friend
    #554247

    Anyone there?

    Eragon H Friend
    #555079

    You can follow these steps

    1. Extract the attachment and copy the file default.php to folder root/templates/ja_mitius/html/com_content/archive/ (create this folder if not unavailable)

    2. Add this code to file root/templates/ja_mitius/css/custom.css (create this file if unavailable)

    .filters .filter-search, .filters .display-limit {
    width: 70% !important;
    }


    1. default.zip
    aryentain99 Friend
    #555131

    Thank you so much for your reply man! I’ve applied these changes and while the page shows now, it has the following problems:

    1) the template seems to be broken (right column)
    2) the introtext shows styles and images (i would like to avoid that)

    here you have the link: http://www.arquespalacio.com.ar/saracatu/index.php/noticias/archivo-de-noticias
    again, many thanks Eragon H!

Viewing 15 posts - 1 through 15 (of 24 total)

This topic contains 24 replies, has 3 voices, and was last updated by  Eragon H 9 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum