Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • mpiprojects Friend
    #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 : packery

    Example 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 Moderator
    #1087980

    Hi,

    Kindly share the credentials of your site: URL, Admin account so I can take a look.

    Regards

    mpiprojects Friend
    #1089871

    I 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)


    1. Image1
    mpiprojects Friend
    #1089873
    This reply has been marked as private.
    mpiprojects Friend
    #1089874
    This reply has been marked as private.
    mpiprojects Friend
    #1089887
    This reply has been marked as private.
    Saguaros Moderator
    #1090115

    Hi,

    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.

    mpiprojects Friend
    #1090161

    Hello.

    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 Moderator
    #1090251

    Hi 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

    mpiprojects Friend
    #1090389

    Sorry 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
    Article

    It is not showing for the type:
    Gallery

    I have been looking at code for hours. I can not find anything wrong.
    So I don’t know, why it’s not working.


    1. Image4
    Saguaros Moderator
    #1090480

    So you want to show introtext in article type of Gallery, right?

    Could you update the login again? as I can’t access it now.

    mpiprojects Friend
    #1090485
    This reply has been marked as private.
    Saguaros Moderator
    #1090562
    This reply has been marked as private.
    Saguaros Moderator
    #1090569

    You 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.

    mpiprojects Friend
    #1090610

    Hola 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.

Viewing 15 posts - 1 through 15 (of 16 total)

This 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