Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-25-2012 10:27:09

gbailey
Member
Registered: 04-25-2004
Posts: 93

Sitemap exclusions?

How does the sitemap deal with visibility settings?

I want to have a page visible to certain customers (like a bonus page or a confirmation page). How do I set the visibility settings so that the page doesn't show up in the sitemap?

Thanks

Offline

 

#2 10-25-2012 11:29:14

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Sitemap exclusions?

If you set the visibility at all on the page so that only certain groups can access it, the page will not show in the sitemap - which produces the map based on what a guest user would see.


Nick Hendler

Offline

 

#3 03-01-2013 16:34:46

jamesdan567
Member
Registered: 01-20-2013
Posts: 32

Re: Sitemap exclusions?

being able to set page visibility is a great feature since it essentially eliminates the need for a non-public dev site. However, when I set a product to be visible only to a certain group because its not ready for prime time, the product list (store->products) does not have any visual hints on what pages have visibility settings that are set. It would be a great improvement for CCP8 to add a bright red asterisk or someother visual cue to each product line item that alerts the user that visibility is not the norm... otherwise I am left having to keep a log in my notebook or just store it in my head (neither of which are reliable once i get past 1 or 2 invisible pages :-) - I hope you can add this feature someday...
thanks!
James

Offline

 

#4 03-02-2013 04:59:18

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: Sitemap exclusions?

you can choose which columns appear in the the product management interface.
System > Database > Raw Database Admin
Then browse "core_columndefs" and look for "ecom_prod.prodview", then change "cbackendlist" to 1

Nigel

Offline

 

#5 03-04-2013 08:42:10

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Sitemap exclusions?

Or, just edit the column definition under "Maintain" when managing the table in Raw DB Admin and set it's visibility to true or false there.


Nick Hendler

Offline

 

#6 07-21-2015 15:14:55

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Sitemap exclusions?

I have a landing page called "Discontinued" where I redirect discontinued products.  I blocked this from Google in my robots.txt file but Google does not like that.  How can I remove this from appearing in my sitemap without restricting the visibility of the page?

Offline

 

#7 07-22-2015 16:53:27

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Sitemap exclusions?

Edit the file {private}/core/CORE_SiteMap/CORE_SiteMap.php.  In there you will see an SQL statement that pulls page info from the cms_html table.  Modify that SQL to exclude the id of the page in question.


Nick Hendler

Offline

 

#8 08-04-2015 14:42:19

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Sitemap exclusions?

Here is the page in question:

https://snakeclamp.com/discontinued

I see this SQL:

$sql = 'SELECT id, dispname, seourl FROM ' . $table . ' WHERE ';

How do I exclude a page?

Thanks

Offline

 

#9 08-05-2015 05:01:11

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Sitemap exclusions?

Code:

$sql = 'SELECT id, dispname, seourl FROM ' . $table . ' WHERE id<>' . $this->CORE_DB->quote('ID-TO-EXCLUDE');

Nick Hendler

Offline

 

#10 08-06-2015 14:21:25

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Sitemap exclusions?

Thanks NIck.  You rock!

Offline

 

Board footer