test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • rocher Friend
    #1064080

    Hi,

    You helped me with an earlier support request (link below) where I wanted to use a leading article’s full-sized fulltext_image in Featured Articles (Home Page) and Category Blog menu options, and the smaller intro_image for the intro articles on the page.

    As you’ll see from the link, I had to change the code in templates/ja_magz_ii/html/com-content/featured and category folders, creating default_leading.php and blog_leading.php and calling either the default_item.php/blog_item.php or the new _leading.php files depending on whether the routine was displaying a leading or intro article.

    https://www.joomlart.com/forums/topic/performance-reports-images-resized-in-html-or-css-from-680×440-to-292×189/

    The code changes work fine, keeping it up to date is manageable, but I’ve struck a small problem now that I’ve added a blog to my website: https://www.tallandtrue.com.au/blog-post/

    I’ve configured the Blog menu item to have one leading article, but it’s not displaying the fulltext_image, it’s displaying the intro_image. I noted that the menu items are different for the Category Blog vs Blog View, so I wondered if the routine is calling another piece of code (not in the feature or category folders).

    I have spent a couple of hours or so looking for the code but I can’t find it – I’ve even tried Googling for its location, but I keep ending up back in the category folder, looking at blog.php which I’ve already customised for the Category Blog.

    I hope this makes sense and that you can point me in the right direction.

    Regards, Robertf

    • This topic was modified 7 years, 2 months ago by  rocher.
    • This topic was modified 7 years, 2 months ago by  rocher.
    Saguaros Moderator
    #1064302

    Hi Robert,

    The page: https://www.tallandtrue.com.au/blog-post/ seems not exist

    You can send me the correct URL and share the credentials of your site so I will check for you.

    Regards

    rocher Friend
    #1064323
    This reply has been marked as private.
    Saguaros Moderator
    #1064627

    Hi Robert,

    There is no setting to set that leading item to show fulltext image as by default in Joomla, it will show intro text for blog view layout page. You can try to change the intro image of that specific article.

    rocher Friend
    #1064654

    Hi Saguaros,

    Are you saying there are no code changes I can make for displaying leading Blog View articles and images as per the Featured Articles and Category Blog changes suggested in the following support post?
    https://www.joomlart.com/forums/topic/performance-reports-images-resized-in-html-or-css-from-680×440-to-292×189/

    Regards, Robertf

    Saguaros Moderator
    #1064807

    I meant the settings, you can customize in the same way as in that topic.

    • Download the same ZIP file and copy it to: [root]/templates/ja_magz_ii/html/com_content/category/
    • Rename that default_leading.php file to: xblog_leading.php
    • Then open the file: [root]/templates/ja_magz_ii/html/com_content/category/xblog.php

    At approx line 65:
    Change:

    echo $this->loadTemplate('item');

    to:

    echo $this->loadTemplate('leading');
    rocher Friend
    #1064811

    Excellent, thanks, Saguaros, so I make the same sort of code changes to xblog.php as I have to blog.php, calling xblog_leading.php for the leading blog post? That sounds perfect. I’ll make the code changes later today and let you know how it works.

    Regards, Robertf

    rocher Friend
    #1065042

    Thanks, Saguaros, all is working fine … once I’d read your instructions properly! 🙂

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

This topic contains 7 replies, has 2 voices, and was last updated by  rocher 7 years, 2 months ago.

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