J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Excluding Root Category from Sitemap but keeping nested Categories (1 viewing) 
Go to bottom
TOPIC: Re:Excluding Root Category from Sitemap but keeping nested Categories
#1337
Alexandre Thrrien
Junior Boarder
Posts: 39
User Offline
Excluding Root Category from Sitemap but keeping nested Categories Karma: 0  
Hello John,

I got a few ugly links in my site map. You know when you don't create a menu item for some categories in K2, you will end up with ugly SEF.

I am trying to get rid of them at the moment...
I got this link that has really bad layout and I don't really want it public, but it has nested categories that are in my menu items with a nice layout.

However when I get directly to this link: http://www.quebecguitare.ca/component/k2/content/154-ressources/
...which I found in the sitemap, the layout is terrible, because there is no way to access this link without a direct hit.

I would like to exclude it, but I still want the nested categories to be crawled.

Any ideas? ... maybe I am way off and this is an easy one.

Other examples: http://www.quebecguitare.ca/component/k2/content/157-references/ http://www.quebecguitare.ca/component/k2/content/159-service/ http://www.quebecguitare.ca/blog/content/160-ressource-technique/ http://www.quebecguitare.ca/component/k2/content/90-tarifs/


Regards
 
Logged Logged  
  The administrator has disabled public write access.
#1340
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Excluding Root Category from Sitemap but keeping nested Categories Karma: 79  
Hello Alex,

when there are no menu items linking to some K2 contents the alias can't be resolved by the Joomla SEF routing and the string 'component/k2' can't be replaced.

As my suggestion would be exclude those K2 categories from the sitemap, eventually keeping contents from nested subcategories.

To exclude specific K2 categories you can use a 'where' condition and the list of categories id to exclude comma separated, you can have a look at this post where it's already been explained: http://storejextensions.org/forum/view/10-jsitemap/1301-exclude-single-k2-item.html

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top