We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Pat
  2. General Discussion
  3. Saturday, 02 August 2014
  4.  Subscribe via email
Hello

I'm using Joomla 3.3.1 and T3 Bs3 Blank 2.1.4.
Reference URL:
http://www.solidrockdaycamp.com/joomla3/index.php/day-camp/media-gallery

This URL is a category blog displaying the titles and intro images for individual articles. I'm trying to get the intro images to be links to the articles.

I've researched various solutions. I tried overriding components/com_content/views/category/tmpl/blog_item.php
LINE 39:
item); ?>

templates/t3_bs3_blank/html/com_content/category/blog_item.php
TO:
item->slug, $this->item->catid)); ?>

item); ?>


This actually works, but blows up the responsive styling for the blog layout. I'm thinking I'm overriding the wrong file?
Has anyone else come across this situation?

Thanks in advance.
Pat
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Sorry....the php code I posted above got wiped....
Either way, the override works as far as getting the intro image to link, which BTW was undone on the URL above because it was blowing the layout up. Just need to know which file exactly I should be overriding. How would one find this out?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
OK Sorry....I bailed. After a few more attempts at overriding the blog/featured article layout I bailed out and simply hardcoded the images and links into a single article. Its a photo gallery index that will be updated once a year...so I can get away with this "solution".
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
So everything works properly now?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hello, I have the same problem as Pat, but I'm not satisfied with his solution.

My articles are being displayed 4 in one row. Each article has one intro image and the title:
http://adults.stoneskirts.pl/images/etc/ss.jpg


When I decrease browser width articles' layout changes, and that's fine. However, when trying to override the com_content->category->blog_item.php, and try adding link to the intro image, articles start to display as they would be in a mobile resolution:
http://adults.stoneskirts.pl/images/etc/bb.jpg



Looking forward to hear from somebody! :)

Thanks!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

Could you please provide your changes in the blog_item.php
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

The tricky part is that, even when I make no changes at all to blog_item.php, when i just put it into override folder html->com_content->category, it changes to this second layout.

Of course blog_item.php I take from components->.....
It acts like it didn't see any changes in Articles/Featured(in global configuration), after I put blog_item.php

My blog_item.php from joomla core files:

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

defined('_JEXEC') or die;

// Create a shortcut for params.
$params = $this->item->params;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
$canEdit = $this->item->params->get('access-edit');
$info = $params->get('info_block_position', 0);
?>
<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
<div class="system-unpublished">
<?php endif; ?>

<?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>

<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
<?php endif; ?>

<?php if ($params->get('show_tags') && !empty($this->item->tags->itemTags)) : ?>
<?php echo JLayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
<?php endif; ?>

<?php // Todo Not that elegant would be nice to group the params ?>
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?>

<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?>

<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>


<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->introtext; ?>

<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
<?php endif; ?>

<?php if ($params->get('show_readmore') && $this->item->readmore) :
if ($params->get('access-view')) :
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
else :
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JUri($link1);
$link->setVar('return', base64_encode($returnURL));
endif; ?>

<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $this->item, 'params' => $params, 'link' => $link)); ?>

<?php endif; ?>

<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
</div>
<?php endif; ?>

<?php echo $this->item->event->afterDisplayContent; ?>
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.