We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question

Hide subpages

Is there a way to hide subpages? I have a listing page with all job openings like this: http://fredbeveiligt.nl/vacatures/

All jobs are subpages but now I can only delete a subpage but it would be nice if I could hide them because some jobs are maybe needed for later on and then I would like to activate them again.

Now I made via ftp a archive folder and placed it there but that not something you want for a client.

Ischa Gast

Ischa Gast 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can hide a page from navigation in its page options.

I tried that but that doesn't work :(

I made this page with the following code:

<?php
    perch_content_custom('Vacature', array(
        'page' => '/vacatures/*',
        'sort-order' => 'ASC',
        'template' => 'vacature-lijst.html',
        ));
?>

That lists all subpages in a nice list. But when I choose hide from main navigation in the page options it's still there.

I think you need to use perch_pages_navigation instead of perch_content_custom, see http://docs.grabaperch.com/docs/navigation/

Thanks a lot, it works super duper great!