Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • smartsolutions.design Friend
    #967815

    I 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.com

    What 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 Friend
    #967831

    So 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 Moderator
    #967898

    Hi
    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 .

Viewing 3 posts - 1 through 3 (of 3 total)

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