test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • felix1 Friend
    #206344

    Hallo!

    I have sent a PM to a member of support staff but haven’t got any reply. Therefore I will try a new forum post again…

    I need to switch place between headline and image in my news articles.

    Can somebody please help me override layout in category view and article view in com_content? I only ask because I don’t master PHP yet.

    I can send FTP access if needed. Otherwise I have provided site access information to JA Staff as usual.

    Sincerely//Felix Rimfrost


    1. bild-rubrik

    Felix Rimfrost

    Adam M Moderator
    #570681

    Hi @felix1,

    Do you want to update this change everywhere or just in article detail page only ?

    Adam M Moderator
    #735744

    Hi @felix1,

    Do you want to update this change everywhere or just in article detail page only ?

    felix1 Friend
    #570749

    Hallo and thanks for reply!

    I want this change on homepage and also when I read the full article. And yes, on all articles on the site…

    Support member Viet Vu helped me earlier when I still was on a test server (see forum thread).
    http://www.joomlart.com/forums/topic/switch-place-headline-and-image/

    But now I’m on another server where the final site will be…

    Sincerely//Felix Rimfrost

    Felix Rimfrost

    Adam M Moderator
    #570917

    Hi @felix1,

    1. To move the intro image before article title in Categoory Layout, please copy file pluginssystemt3base-bs3htmlcom_contentcategoryblog_item.php and paste to templatespurity_iiihtmlcom_contentcategory, open this file and look for :

    <?php echo $this->item->event->beforeDisplayContent; ?>

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

    <?php echo $this->item->introtext; ?>

    remove the intro image here as below :

    <?php echo $this->item->event->beforeDisplayContent; ?>

    <?php echo $this->item->introtext; ?>

    next, look for this code :

    <?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; ?>

    add the intro image before title as below :

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

    <?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; ?>

    2. Now is the article detail page, please open file templatespurity_iiihtmlcom_contentarticledefault.php and look for this code :

    <?php if ($params->get('access-view')): ?>
    <?php echo JLayoutHelper::render('joomla.content.fulltext_image', array('item' => $this->item, 'params' => $params)); ?>

    remove the full image here as below :

    <?php if ($params->get('access-view')): ?>

    and look for the title :

    <?php if ($params->get('show_title')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h1')); ?>
    <?php endif; ?>

    then insert the image before it :

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

    <?php if ($params->get('show_title')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h1')); ?>
    <?php endif; ?>

    felix1 Friend
    #571116

    THANK YOU ADAM!!! 🙂

    I could kiss you right now, if you where here. :-*

    You are awsome! You explained it very good. I have no knowledge of PHP, but I can copy and paste at least… 😉

    Sincerely

    Felix Rimfrost

    Felix Rimfrost

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

This topic contains 6 replies, has 2 voices, and was last updated by  Adam M 9 years, 7 months ago.

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