Excluding single page from nav (and other attributes)

Permalink
Hi,

Within a package I create a (new) single page. This page should be excluded from nav (and sitemap and search,...), so I did the following.

<?php
        // $sp is the actual single page.
        $sp->setAttribute('exclude_sitemapxml', true);
        $sp->setAttribute('exclude_nav', true);
        $sp->setAttribute('exclude_page_list', true);
        $sp->setAttribute('exclude_search_index', true);
?>


but without success.
When debugging, I see that the attributes property is empty and remains empty.

Did I forget something?

I can do the exclusion after installing/updating the package by going to the dashboard, but i need it in the install/update of the package!


Using C584+

SnefIT
 
SnefIT replied on at Permalink Reply
SnefIT
Oops... it just works ok :)

Looking at the wrong pages... Sorry!