Jump to content

Hiding children from crawlers


Manaus
 Share

Recommended Posts

Hello, I made one page in a way that it gathers content from its children, and displays them all as paragraphs of a text.
Now, having used one of those crawlers who find errors in websites, I discovered all the children pages are reachable (can't say from where, maybe a sitemap). Loading them with their own Url, the result is a blank page.
How can I make them hidden as children, but loaded in the parent page?

Thanks

Link to comment
Share on other sites

15 minutes ago, Manaus said:

How can I make them hidden as children, but loaded in the parent page?

Two options:

  1. No template file for the template the children pages use (direct access to a child URL will lead to a 404).
  2. Make the children unpublished (accessing children will result in a 404 unless you are logged in and have view rights to those children). In this case, selector should have include=unpublished.
Edited by kongondo
clarification
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...