Mark
Mark
Offline
0
Hi Germi and MusCol community,

Our site uses XMAP extension developed for Joomla 2.5. Our problem lies with the way the links are generated. There is no option in the extension to set a menu id so our links are as follows "component/muscol/.." which is incorrect and effects SEO. Is there a way to link our correct menu id through php?

I think the issue lies with this code:

if( ($xmap->printNode($node) !== FALSE) && $params['expand_albums']) {

$albums = xmap_com_muscol::getDBAlbums($row->id);
foreach($albums as $album) {
$xmap->changeLevel(1);
$node = new stdclass;

$node->id = $parent->id;

$node->uid = $parent->uid.'a'.$album->id; // unique id of the element in all the component

$node->pid = $album->id; // parent id
$node->name = $album->name;
$node->link = 'index.php?option=com_muscol&view=album&id='.$album->id;
Responses (3)
  • Accepted Answer

    Tuesday, October 30 2018, 02:10 PM - #Permalink
    0
    hi

    the Itemid is not included in those links, indeed. This plugin was not developed by us (it was provided by a user)
    The code should be modified to add this. I can make the changes in the file, however I believe you don't currently have an active subscription...
    The reply is currently minimized Show
  • Accepted Answer

    Mark
    Mark
    Offline
    Tuesday, October 30 2018, 02:40 PM - #Permalink
    0
    Hi Germi,

    Thanks for your response but it looks like we've resolved this by adding a rewrite rule inside our htaccess.
    The reply is currently minimized Show
  • Accepted Answer

    Mark
    Mark
    Offline
    Thursday, January 17 2019, 10:33 AM - #Permalink
    0
    Hello Germi,

    Would it be possible to edit this file to include the menu id? We now have an active subscription.
    The reply is currently minimized Show
Your Reply