Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jurgeng Friend
    #1069210

    Hi,

    in Joomla 3.8.1 it’s possible to assign ‘no author’ to a text. When choosing "no author" but entering an alias, the alias will not appear in the masshead.

    Saguaros Moderator
    #1069464

    Hi,

    By default, JA Masthead module has no field called ‘no author’, you can share the credentials of your site and screenshot of how you want it should be, I will check for you.

    jurgeng Friend
    #1069646
    This reply has been marked as private.
    Saguaros Moderator
    #1069680

    Hi,

    The login info doesn’t work, kindly check again.

    jurgeng Friend
    #1069809

    Hi,

    are you certain you copied the whole password (including exclamation mark)? I can log in with the credentials.

    Saguaros Moderator
    #1070158
    jurgeng Friend
    #1070206

    Hi,

    you’re right. I didn’t consider the frontend was Community Builder. The login worked fine for the backend, and now also works for the frontend.

    Saguaros Moderator
    #1070394

    Hi,

    I’m still not entirely of how you want to achieve here as I can see the author is showing now on this page: https://ws.gaeremyn.be/2016/cheap-and-accurate-reactive-molecular-dynamics-a-guided-demonstration

    http://prntscr.com/h2jqf3

    jurgeng Friend
    #1070425

    Hi,

    currently I have set myself as the "dummy author" behind this text. The consequence is that you see this article under my name on my Community Builder profile. The moment I put the author to "no author", the module will not display the alias field either. So my point is: in the module source code:

    Check if there is an alias. If there is an alias, show the alias (don’t check if there is a user first)

    So I hacked my way around the problem, but I’m looking for a long-term solution.
    I’ll see if I can find time to dive into the code. I was hoping to find someone familiar with the code who would instantly understand my issue, and the say: "oooooh, it’s in line XXX of file YYY.php!" 🙂 Maybe this could be my first patch proposal 😉

    Saguaros Moderator
    #1070437

    But I’m still not entirely of how you want to achieve here, check the profile page: https://ws.gaeremyn.be/home/personal-profile but not sure where you want to show author and where you set the alias?

    jurgeng Friend
    #1070667

    Okay, so I made a video to show what I mean. Here you can see it:
    https://youtu.be/NExNlgaJRD0

    The essence is that I’m the website maintainer, not somebody delivering content. In theory, my profile should contain no articles. Currently I’m addressing all public service messages to my account. This is clearly polluting the profile pages.

    Saguaros Moderator
    #1070900

    Yes, it’s better with a video.

    You can try with this tweak:

    • Go to file: root/templates/ja_oslo/html/layouts/joomla/content/info_block/block.php
    • Replace this:
      <?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
      <?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
      <?php endif; ?>

      By:

      <?php if ($displayData['params']->get('show_author') && ( $displayData['item']->author || $displayData['item']->created_by_alias) ) : ?>
      <?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
      <?php endif; ?>
Viewing 12 posts - 1 through 12 (of 12 total)

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

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