Related Items author bug, translation, page assignament
- Posted by Marek (4) Offline
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?
9 years 2 weeks ago #1
by Marek
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?
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi,
Please open this file with your favorite php editor :
/modules/mod_relateditems_xtd/helper.php
at lines 106 you will see this page 106 :change that to
then at lines 197, you will see this code :
change that to
9 years 1 week ago #2
by TemplatePlazza
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.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.
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'),
$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');
I'm not really sure about what you are mentioned but the module will only display related items on a article page2. 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.
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.ini3. Is there a French translation?
Please Log in or Create an account to join the conversation.
- Posted by Marek (4) Offline
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.
9 years 1 week ago #3
by Marek
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.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline