Error in link generated in site map
7 posts
• Page 1 of 1
Error in link generated in site map
Joomla 2.5.1 and Xmap 2.2.1
This works great except that it appears to generate an incorrect link from the site map to the page when the menu item to that page is a URL internal link.
Example:
Menu Item URL: .... index.php/hps-gallery-m/category/28-hps-david-platt
Site Map link URL: .. index.php/hps-gallery-m/category/28-hps-david-platt/hps-useful-m/hps-site-map-m
The URL of the site map page is .... index.php/hps-useful-m/hps-site-map-m
So Xmap is appending its own URL extension to the required URL when the Menu Item is an internal URL. It seems to work OK with external URLs.
Regards.
This works great except that it appears to generate an incorrect link from the site map to the page when the menu item to that page is a URL internal link.
Example:
Menu Item URL: .... index.php/hps-gallery-m/category/28-hps-david-platt
Site Map link URL: .. index.php/hps-gallery-m/category/28-hps-david-platt/hps-useful-m/hps-site-map-m
The URL of the site map page is .... index.php/hps-useful-m/hps-site-map-m
So Xmap is appending its own URL extension to the required URL when the Menu Item is an internal URL. It seems to work OK with external URLs.
Regards.
- WeDontByte
- Fresh Boarder

- Posts: 4
- Joined: Tue Feb 07, 2012 1:45 pm
Re: Error in link generated in site map
Hi, thanks for posting, let me see if I get this clear:
so do you have an menu item that you manually specified the sef url "index.php/hps-gallery-m/category/28-hps-david-platt"? so, I mean, is it a "external url" menu item but instead of specifying a real external url, you introduced the a internal SEF url into it? is that right?
so do you have an menu item that you manually specified the sef url "index.php/hps-gallery-m/category/28-hps-david-platt"? so, I mean, is it a "external url" menu item but instead of specifying a real external url, you introduced the a internal SEF url into it? is that right?
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
Re: Error in link generated in site map
That's correct. I've invoked the External URL menu option but inserted an Internal URL (index.php/....)
Maybe there's a better way of doing it! I'm very much a "new boy" where Joomla is concerned, but I wanted to generate entries in the Site Index of Phoca Gallery generated category pages of images. So I created Sub-menus of External (actually Internal) URLs but without having them displayed. Xmap created the Site Map entries exactly as I'd hoped but unfortunately the link back to the pages fails as I'd described.
If it helps, my web site is www.heswallphotosoc.co.uk - the Phoca Gallery categories appear under the "Gallery" menu and the Site Map can be found via "Useful Stuff".
Many thanks.
PS I should have mentioned that I've disabled these "dummy" menus. The only one left that displays this problem is "Last Updated...".
Maybe there's a better way of doing it! I'm very much a "new boy" where Joomla is concerned, but I wanted to generate entries in the Site Index of Phoca Gallery generated category pages of images. So I created Sub-menus of External (actually Internal) URLs but without having them displayed. Xmap created the Site Map entries exactly as I'd hoped but unfortunately the link back to the pages fails as I'd described.
If it helps, my web site is www.heswallphotosoc.co.uk - the Phoca Gallery categories appear under the "Gallery" menu and the Site Map can be found via "Useful Stuff".
Many thanks.
PS I should have mentioned that I've disabled these "dummy" menus. The only one left that displays this problem is "Last Updated...".
- WeDontByte
- Fresh Boarder

- Posts: 4
- Joined: Tue Feb 07, 2012 1:45 pm
Re: Error in link generated in site map
Hi, thanks for replying. Yes, it looks like there is a bug with Xmap on these cases, but It not good idea to use the SEF urls for internal links, you should use internal urls instead, in the format
index.php?option=com_mycompoennt&...
But for doing that, you should know how to generate them. I'm going to investigate this bug and fix it, also, I'm going to release a extension for phoca gallery for Xmap 2 but I don't think that Im going to be able to do it until the weekend, sorry.
Thanks,
Guillermo
index.php?option=com_mycompoennt&...
But for doing that, you should know how to generate them. I'm going to investigate this bug and fix it, also, I'm going to release a extension for phoca gallery for Xmap 2 but I don't think that Im going to be able to do it until the weekend, sorry.
Thanks,
Guillermo
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
Re: Error in link generated in site map
Hi
Just thought I'd update you. I managed to work out how to specify the "External" URL as
index.php?option=com_phocagallery&Id=nn
this format works in the Xmap generated Site Map, although clicking on the Site Map link doesn't produce quite the same results as navigating to the page via the Menu and Phoca Gallery category link - but I can live with that!!
Thanks.
Just thought I'd update you. I managed to work out how to specify the "External" URL as
index.php?option=com_phocagallery&Id=nn
this format works in the Xmap generated Site Map, although clicking on the Site Map link doesn't produce quite the same results as navigating to the page via the Menu and Phoca Gallery category link - but I can live with that!!
Thanks.
- WeDontByte
- Fresh Boarder

- Posts: 4
- Joined: Tue Feb 07, 2012 1:45 pm
Re: Error in link generated in site map
I have the same problem but not how to fix it.
Any solution?
Thanks
Any solution?
Thanks
- neon26
- Fresh Boarder

- Posts: 1
- Joined: Sun Feb 19, 2012 2:43 pm
Re: Error in link generated in site map
Hi, I was checking into this a little bit deeper and it looks like that there is no problem with Xmap. I you have to do external menu items using SEF urls, then make sure that it starts with a slash, eg: '/index.php/my-url'. If you site is running on a subfolder, then add it as well, eg: '/joomla/index.php/my-url'.
Note, don't expect Xmap to expand it because it won't be able to know know what component it belongs to. For example, if it a menu ling to a photo gallery, it won't include the subgalleries or photos links into the sitemap under those menu items.
@WeDontByte, it's not a good SEO practice to have different urls for the same content, so I suggest you to make sure to add all the required params for the URL to make sure it looks the same, probably you are missing the Itemid, I assume you have a menu item for phocagallery, so find what its ID is and add it to the url, something like:
index.php?option=com_phocagallery&Id=nn&Itemid=XX
Regards,
Guillermo
Note, don't expect Xmap to expand it because it won't be able to know know what component it belongs to. For example, if it a menu ling to a photo gallery, it won't include the subgalleries or photos links into the sitemap under those menu items.
@WeDontByte, it's not a good SEO practice to have different urls for the same content, so I suggest you to make sure to add all the required params for the URL to make sure it looks the same, probably you are missing the Itemid, I assume you have a menu item for phocagallery, so find what its ID is and add it to the url, something like:
index.php?option=com_phocagallery&Id=nn&Itemid=XX
Regards,
Guillermo
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests