Hidden Pages

Post Reply
tibbz
Jr. Bludit
Posts: 9
Joined: Tue May 18, 2021 1:04 am
Has thanked: 1 time

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.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

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 ?>
https://sucrepop.com
Candies for the ears
tibbz
Jr. Bludit
Posts: 9
Joined: Tue May 18, 2021 1:04 am
Has thanked: 1 time

Many thanks - good ideas.
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Not mine, but Edi :roll:
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

LRAM wrote: Thu Jul 08, 2021 2:07 pm Not mine, but Edi :roll:
No, it's not my solution. ;-)
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply