-
AuthorPosts
-
rocher Friend
rocher
- Join date:
- August 2008
- Posts:
- 91
- Downloads:
- 9
- Uploads:
- 16
- Thanks:
- 15
- Thanked:
- 3 times in 3 posts
September 26, 2017 at 3:44 am #1064080Hi,
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
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 27, 2017 at 4:04 am #1064302Hi 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 Friendrocher
- Join date:
- August 2008
- Posts:
- 91
- Downloads:
- 9
- Uploads:
- 16
- Thanks:
- 15
- Thanked:
- 3 times in 3 posts
September 27, 2017 at 4:52 am #1064323This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 28, 2017 at 8:56 am #1064627Hi 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 Friendrocher
- Join date:
- August 2008
- Posts:
- 91
- Downloads:
- 9
- Uploads:
- 16
- Thanks:
- 15
- Thanked:
- 3 times in 3 posts
September 28, 2017 at 10:46 am #1064654Hi 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 29, 2017 at 4:24 am #1064807I 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 Friendrocher
- Join date:
- August 2008
- Posts:
- 91
- Downloads:
- 9
- Uploads:
- 16
- Thanks:
- 15
- Thanked:
- 3 times in 3 posts
September 29, 2017 at 4:47 am #1064811Excellent, 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
-
AuthorPosts
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