<<< Coding for the future >>>
| Xmap for JoomGallery 1.5.6 |
|
|
|
| Written by Administrator |
| Friday, 10 December 2010 00:01 |
|
To fix the urls in xmap, open up the file: /administrator/components/com_xmap/extensions/com_joomgallery.php We need to fix two things - the category urls and the picture urls. First the category urls. Look for (around 86) $node->link = 'index.php?option=com_joomgallery&task=viewcategory&catid='.$cat->cid; Change to: $node->link = 'index.php?view=category&catid='.$cat->cid;
Now for the picture urls. Look for (around line 104) $node->link = 'index.php?option=com_joomgallery&func=detail&id='.$file->id; Change to: $node->link='index.php?view=detail&id='.$file->id;
Clear the cache in the xmap options, and regenerate the sitemap - i.e. just load up your sitemap page. The urls for your joomgallery should be correct in the sitemap. If not, then blame Obama.
|
| Last Updated on Friday, 10 December 2010 00:10 |
Comments
Thanks for the tip
M
RSS feed for comments to this post.