Page 1 of 1

Hidden Pages

Posted: Sun Jul 04, 2021 12:15 pm
by tibbz
Is there a way to officially designate pages as published but hidden. At the moment I keep them in draft mode and reference them directly which is a "fix" but I fear it will not work in the future now I've highlighted the feature.

Re: Hidden Pages

Posted: Sun Jul 04, 2021 1:48 pm
by Edi
This will come with Bludit v.4:

https://github.com/bludit/bludit/issues/1057

For test purposes you can download the Alpha version at

https://github.com/bludit/bludit/releases

Re: Hidden Pages

Posted: Sun Jul 04, 2021 8:23 pm
by LRAM
This worked for me

Code: Select all

<!-- Static pages -->
<?php foreach ($staticContent as $staticPage): ?><li>
	<a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a>
</li>
<?php endforeach ?>
Change it to

Code: Select all

<?php foreach ($staticContent as $staticPage): ?>
<?php if ($staticPage->slug() != "404") { // hide 404 error page from menu ?>
<li>
	<a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a>
</li>
<?php } ?>
<?php endforeach ?>

Re: Hidden Pages

Posted: Tue Jul 06, 2021 11:03 pm
by tibbz
Many thanks - good ideas.

Re: Hidden Pages

Posted: Thu Jul 08, 2021 2:07 pm
by LRAM
Not mine, but Edi :roll:

Re: Hidden Pages

Posted: Thu Jul 08, 2021 7:25 pm
by Edi
LRAM wrote: Thu Jul 08, 2021 2:07 pm Not mine, but Edi :roll:
No, it's not my solution. ;-)