Quote

We're also available for Custom Joomla Development

Hire us now

Related Items author bug, translation, page assignament

There are some issue I was hoping to get an answer for:

1. The name of the author is not showing up. We have over 500 articles and they all have authors. Please send me the fix, I am sure I can implement it or update the module, that would be great.

2. If published on all pages the module is empty on a blog layout page, but if unpublished from the blog layout page it also does not show up on the article pages of that blog.

3. Is there a French translation?
       
  • Replied by admin on Friday, April 08 2016, 04:44 PM · Hide· #1
    Hi,
    1. The name of the author is not showing up. We have over 500 articles and they all have authors. Please send me the fix, I am sure I can implement it or update the module, that would be great.

    Related item extended actually find the author alias name not the author name. Please try this workaround and tell me whether it works or not.
    Please open this file with your favorite php editor :
    /modules/mod_relateditems_xtd/helper.php

    at lines 106 you will see this page 106 :
    $db->quoteName('c.created_by_alias'),

    change that to
    $db->quoteName('c.created_by'),


    then at lines 197, you will see this code :
    $item->author = $item->created_by_alias;


    change that to
    $item->author = JFactory::getUser($item->created_by)->get('name');

    2. If published on all pages the module is empty on a blog layout page, but if unpublished from the blog layout page it also does not show up on the article pages of that blog.

    I'm not really sure about what you are mentioned but the module will only display related items on a article page

    3. Is there a French translation?

    you can translate this file /language/en-GB/en-GB.mod_related_items.ini or make your own lang file in here /language/fr-FR/fr-FR.mod_related_items.ini
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by umarek on Friday, April 08 2016, 05:21 PM · Hide· #2
    Thank you for the quick reply!

    I have made the changes - 1 and 3 worked like a charm. For the language files it was of course fr-FR.mod_related_items_xtd.ini

    About publishing the module. If I don't publish the module on my category page blog layout the module does not show up on individual article pages. If I publish the module on the category blog layout it shows up on individual pages with related items, but it is empty on the category blog layout page which does not look very well.
  •  
  •  
    Replied by admin on Friday, April 08 2016, 11:56 PM · Hide· #3
    Can you share your website url? So I can take a look?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments