0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry customize blog article problem

    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    SOLVED Gantry customize blog article problem

    Posted 7 years 11 months ago
    • I have a client that wants the article intro image to be placed above the title. So I did some research and copied the "com_content/views/category" to the "templates/g5_hydrogen/html" folder. edited the "templates/g5_hydrogen/html/com_content/views/category/tmpl/blog_item.php" file to move the image code above the title code as follows:
      <?php  echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
      
      <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>

      Loaded up the blog on the frontend after clearing cache but it does not change anything.

      Can someone explain what I did wrong?
    • Last Edit: 7 years 11 months ago by Luke Douglas.
    • Just another old hacker!
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21595
    • Thanks: 3098
    • messin' with stuff

    Re: Gantry customize blog article problem

    Posted 7 years 11 months ago
    • I think you just need to remove "views" and "tmpl" from your path...

      templates/g5_hydrogen/html/com_content/category/blog_item.php

      docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    Re: Gantry customize blog article problem

    Posted 7 years 11 months ago
    • Matt,

      Thanks so much. That did it!
    • Just another old hacker!
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21595
    • Thanks: 3098
    • messin' with stuff

    Re: Gantry customize blog article problem

    Posted 7 years 11 months ago
    • Good deal.

      If a thread is solved please edit your *original/first* post and place "[SOLVED]" (no quotes; but you do need the brackets) at the beginning of your post title. Changing the post icon to the Solved Checkmark is helpful too. :)
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.047 seconds