- Edited
Since Joomla 3.8.x the instances of NSP 5 on our homepage are giving odd errors. The Hero Image Slider is supposed to link to a K2 item, instead it's getting the Title of the item, but the content of the homepage. Has anyone seen this before?
Since Joomla 3.8.x the instances of NSP 5 on our homepage are giving odd errors. The Hero Image Slider is supposed to link to a K2 item, instead it's getting the Title of the item, but the content of the homepage. Has anyone seen this before?
janga Can you add your admin details in edit fields in in order for us to take closer look.
For reference, You can follow thread post (5 point) procedure.
Normally this means the module is loading content that doesn't have a menu link
e.g. it defaults to the itemid 101 which is normally the home page
Double check if there are content links
You also have some errors regarding php
Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!
Cheers
Paul
paulus1031 I was trying different PHP versions in a vain attempt to get a different result. The site is currently running PHP version is 5.6.x. To your point, I believe the answer is yes, these should be valid content links since I can turn off Joomla SEF and they work, also because the page Title is changing, but unfortunately I can't be sure due to a lack of Joomla debugging experience.
As a counter example to the problem the "Latest Events" section below the Hero banner is an instance of the same module with slightly different settings and those links work correctly.
janga Kindly check now. Pursuant to suggestion posted by Paul, Have created hidden menu item through steps outlined here and the specific link is redirecting properly now to respective K2 item as envisaged
You may change the "hidden" menu item title and alias accordingly which has been created to derive the purpose as envisaged. Ref: Screenshot
paulus1031 I think you're right, the articles are not linked to menu items. Each one of the failing K2 articles has an extra field called "Redirect URL" which holds the URL the item is meant to use. I think at some point somebody overwrote the template for the slider to use the extra field as the URL instead of the default url for the K2 item.
Can you give me a some advice as to a better methodology to accomplish the same thing?
aman204 I see you created the DEMO menu item. Thank you for that, I just posted a comment to @paulus1031 where I finally understood what was happening. I'm currently getting an old backup because I believe it was modified at some point to use the "Reditect URL" extra field from the K2 item instead of the item URL. If you guys have any idea what file that change would likely be in I'd be very grateful.
Hi Janga,
janga I believe it was modified at some point to use the "Reditect URL" extra field from the K2 item instead of the item URL.
This would have been before my time - was this change made by support?
Cheers
Paul
paulus1031 Thank you both for your help. I solved the problem but I have a question. There were 2 issues at play.
1. There was an override for the \modnewsprogk5\comk2\view.php left in place by the template designer. It checked the K2 item for an extra field called redirect and if it was present made that the item's new url. This is how K2 items with no menu item were linking to menu items that contained unrelated content.
2. According to the code the module used to import K2 Extra Fields using their alias as the key, but in this version it uses the field name as the key. Is this a purposeful change, or did our designer also override the default behaviour of the Extra Field import?
Thanks for the reply. My last post indicates what happened, but what I'm still not sure of is whether News Show Pro always imported K2 Extra Fields using the name as the key, or if it used to use the alias as the key and this is a change. I ask so that next time we update we'll be ready.