-
AuthorPosts
-
aryentain99 Friend
aryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
August 31, 2014 at 11:32 pm #200958Hi 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!
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 1, 2014 at 2:27 am #547785Lets 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]
1 user says Thank You to chavan for this useful post
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
September 1, 2014 at 11:04 am #547852Thanks for your reply,, nop, i got a blank screen with the month and year filter only.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 1, 2014 at 1:02 pm #547863can you please post your site ftp details and admin details via Private message. I will fix it for you .
1 user says Thank You to chavan for this useful post
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
September 1, 2014 at 6:42 pm #547901thanks for your help, the requested info was sent.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 2, 2014 at 3:04 am #547930I have fixed it for you, please check your site and confirm
1 user says Thank You to chavan for this useful post
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
September 2, 2014 at 12:01 pm #547947Many 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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 2, 2014 at 1:03 pm #547953Remove 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]1 user says Thank You to chavan for this useful post
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
September 2, 2014 at 1:17 pm #547958Now 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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
September 2, 2014 at 1:20 pm #547960This is a kind of customization. If it is been asked by many . It will be applied.
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
October 30, 2014 at 6:05 pm #553727Could you provide me with the other file changes? since it seems in a template or t3 update i lost those changes. Many thanks.
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
November 3, 2014 at 7:53 pm #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 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
November 5, 2014 at 10:48 am #554247Anyone there?
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
November 13, 2014 at 7:44 am #555079You 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 user says Thank You to Eragon H for this useful post
aryentain99 Friendaryentain99
- Join date:
- September 2013
- Posts:
- 82
- Downloads:
- 1
- Uploads:
- 26
- Thanks:
- 35
- Thanked:
- 4 times in 1 posts
November 13, 2014 at 4:49 pm #555131Thank 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!AuthorPostsThis topic contains 24 replies, has 3 voices, and was last updated by Eragon H 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum