HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Is there a way to automatically limit what goes into the site-map?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#98077 (In Topic #19388)
Avatar

Well-settled

I have OCP set up to auto-generate and submit the site-map as shown in the docs.  But the sitemap includes a lot of areas I don't necessary want showing such as the Admin section, and sections I don't show to the public but which exist for restricted user sets (for example, for a number of reasons I only show the file download section to high-privilege users).

Is there a way to set OCP to only generate the site map for pages that are available to the public (non-logged-in users)?  Quite honestly, if it's not available to the public I don't care if Google indexes it or not.

Thanks
Back to the top
 
Posted
Rating:
#98079
Avatar

Hmm, that should not be the case. The site map should only show stuff accessible to guests. If you force it's generation when logged in as admin, it will show what admin can see though.

This makes me wonder if CRON is running correctly. Because if it is, it should have overwritten your manual generation of the sitemap anyway.

I guess we should document this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98085
Avatar

Well-settled

I may have some settings wrong, but my ocp_sitemap.xml (auto-generated) contains references to the following:

/pg/groups/view/administrators
pg/groups/view/super-moderators
pg/groups/view/super-members
pg/groups/view/probation

It also has entries for some "cedi_old" pages that throw critical errors when accessed.  An example is below.

pg/cedi_old/misc/37

So I think I may have been confused by the group views above when I mentioned the admin section showing up in the sitemap file, and mistook that for the admin section showing up in the sitemap.php page when I was logged in.

Thanks again!

Dave


Back to the top
 
Posted
Rating:
#98087
Avatar

cedi_old.php will have been a backup you've saved ;). Call it cedi.php.old, to stop ocPortal thinking it can run it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: