-
AuthorPosts
-
January 20, 2018 at 1:21 pm #1087820
Hello again.
After a few weeks setting up my content, menus and layout, I am very happy with the result. And your template was a good choice for my new website.
Of course every now and then I run into a discrepancy, unexpected behavior or something just isn’t working.
Most of the time it was just me being stupid or something I could easily fix in your template files.But this issue I can’t seem to understand at all.
JoomlArt Advanced Custom Module
Magazine – Featured News : grid & Magazine – Featured News : packeryExample modules on your template demo homepage: Top places & Joomla blog
I have noticed that all of a sudden the category link and intro text is not showing anymore.
Module settings are unchanged (set to show). I didn’t change any of the files on your ACM.What could be the problem?
Many thanks!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 22, 2018 at 7:10 am #1087980Hi,
Kindly share the credentials of your site: URL, Admin account so I can take a look.
Regards
February 2, 2018 at 6:21 pm #1089871I have been busy with other things for my work.
Today I got back on this issue.
I have noticed that your ACM is showing introtext properly on regular Joomla articles.
However it is not on your articles of type: Gallery.
It’s weird. Check screenshot.
(credentials will be shared momentary)
February 2, 2018 at 6:24 pm #1089873This reply has been marked as private.February 2, 2018 at 6:28 pm #1089874This reply has been marked as private.February 2, 2018 at 8:07 pm #1089887This 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
February 5, 2018 at 10:32 am #1090115Hi,
It seems that all of items showing in that module are articles with Gallery content type, while the item showing text: Last minute Spanje is normal Joomla article, pls try to change to Gallery article content type.
February 5, 2018 at 3:16 pm #1090161Hello.
Thank you for your response.
I don’t understand what you are saying. The gallery type is the one with the problem.
So if I switch to them, nothing will be showing.
The article type (last minute spanje), was only a test for trying to figure out the issue.
Since that type is showing the introtext properly, I have been using it for reference to debug the issue.
That article will be removed before the site goes life.Your template article styles, also don’t allow me to switch from gallery type to article type. So once I choose this, I can’t change it. Unless I re-create all articles as new articles.
I will try to figure out where the problem is.
Can you please tell me which file you have changed, while you were in the admin?
Because there is an error on a div class now.Thanks.
Regards, Emiel.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 6, 2018 at 3:45 am #1090251Hi Emiel,
I didn’t change anything, I just checked these article settings only.
And yes, there is not option to switch type for article, you will need to re-create it again. You can try to create Gallery type and it will work fine.
Regards
February 6, 2018 at 6:41 pm #1090389Sorry to be the one to tell you this. But I have tested this on a clean template installation. And it doesn’t work for me.
I create 3 new articles,one of each content type, with the same content (introtext and fulltext).
The introtext and category link is showing correctly for the types:
Video
ArticleIt is not showing for the type:
GalleryI have been looking at code for hours. I can not find anything wrong.
So I don’t know, why it’s not working.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 7, 2018 at 2:19 am #1090480So you want to show introtext in article type of Gallery, right?
Could you update the login again? as I can’t access it now.
February 7, 2018 at 2:29 am #1090485This 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
February 7, 2018 at 10:07 am #1090562This 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
February 7, 2018 at 10:39 am #1090569You can try with this tweak:
- Go to file: root/templates/ja_hotel/html/layouts/joomla/content/intro/gallery.php
- Find this code:
<div class="magazine-item-main"> <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?> </div>
change it to:
<div class="magazine-item-main"> <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?> <?php if ($aparams->get('show_intro', 1)) : ?> <div class="magazine-item-ct"> <?php $max_length = $aparams->get('intro_limit'); $s = strip_tags($item->introtext); if (strlen($s) > $max_length) { $offset = ($max_length - 3) - strlen($s); $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...'; } echo $s; ?> </div> <?php endif; ?> </div>
Remember to backup your site first.
February 7, 2018 at 4:01 pm #1090610Hola Saguaros.
Superb! That was exactly what I needed. Many thanks!
I have added this code above the title part (so that the category link will show too):
<?php if ($aparams->get('show_intro_category')) : ?> <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams)); ?> <?php endif; ?>
I can "understand" a little basics of coding. The problem, most of the time is, I don’t know what files to change.
Many thanks for your help.
Greetings, Emiel.
AuthorPostsThis topic contains 15 replies, has 2 voices, and was last updated by Saguaros 6 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum