Tagged: Feature Layout, layout, t3
-
AuthorPosts
-
smartsolutions.design Friend
smartsolutions.design
- Join date:
- November 2015
- Posts:
- 2
- Downloads:
- 52
- Uploads:
- 0
September 13, 2016 at 5:07 am #967815I really hope that someone can help me out.
So I putting together a site for a magazine company and want to change the T3 layout.
http://www.thesourceuae.smartsdesignuae.comWhat I’m hoping for it to get the article image to show up before the title does. This way the length of the title will not affect the layout as much.
Using Joomla 3.6.2 with T3, stock T3_bs theme
Thanks in advance
smartsolutions.design Friendsmartsolutions.design
- Join date:
- November 2015
- Posts:
- 2
- Downloads:
- 52
- Uploads:
- 0
September 13, 2016 at 6:14 am #967831So this is my solution so far
The only way I could do this way by editing the core plugin file
…pluginssystemt3base-bs3htmlcom_contentfeatured
Orrig
<article> <?php if ($params->get('show_title')) : ?> <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?> <?php endif; ?> <!-- Aside --> <?php if ($topInfo || $icons) : ?> <aside class="article-aside clearfix"> <?php if ($topInfo): ?> <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?> <?php endif; ?> <?php if ($icons): ?> <?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params)); ?> <?php endif; ?> </aside> <?php endif; ?> <!-- //Aside --> <section class="article-intro clearfix"> <?php if (!$params->get('show_intro')) : ?> <?php echo $this->item->event->afterDisplayTitle; ?> <?php endif; ?> <?php echo $this->item->event->beforeDisplayContent; ?> <?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?> <?php echo $this->item->introtext; ?> </section>
Edited
<article> <section class="article-intro clearfix"> <?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?> </section> <?php if ($params->get('show_title')) : ?> <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?> <?php endif; ?> <!-- Aside --> <?php if ($topInfo || $icons) : ?> <aside class="article-aside clearfix"> <?php if ($topInfo): ?> <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?> <?php endif; ?> <?php if ($icons): ?> <?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params)); ?> <?php endif; ?> </aside> <?php endif; ?> <!-- //Aside --> <section class="article-intro clearfix"> <?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; ?> </section>
As you can see I recreated the <section class="article-intro clearfix"> above where the title is displayed. This way it keeps all of the formatting. In here I only put the <?php echo JLayoutHelper::render(‘joomla.content.intro_image’, $this->item); ?>, so it will only load the picture and not any of the other info.
Is there a better way to apply an override to the core plugin component?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 13, 2016 at 10:05 am #967898Hi
Create an override file in the template folder /html/com_content/featured
With the same name and add the override file in it . This way you can create override in the template folder . -
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum