Subsubpages
Hi!
Is it possible to have subsubpages?
I haven't looked through the code, is it possible by design to set a page as child of another parents child?
BTW, if someone is interested, i am working on a theme with mdl
https://github.com/muellmatto/bludit-mdl-seht and created a really simple (not good ) searchfunction
Is it possible to have subsubpages?
I haven't looked through the code, is it possible by design to set a page as child of another parents child?
BTW, if someone is interested, i am working on a theme with mdl
https://github.com/muellmatto/bludit-mdl-seht and created a really simple (not good ) searchfunction
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
At the moment this is not possible.matto wrote: I haven't looked through the code, is it possible by design to set a page as child of another parents child?
You can try to do it manually (a subpage is a subdirectory of a page).
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
No, this does not yet work. It's just an idea how to start. You have also either to modify the navigation script or to make a hard coded navigation.matto wrote: simply adding a subfolder with an index.txt does not work, i guess i have to manually edit the database?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Hi,
could you give me some example of the usage of sub-subpages?
For the moment Bludit support Partent->Child pages.
Regards
could you give me some example of the usage of sub-subpages?
For the moment Bludit support Partent->Child pages.
Regards
-
- Jr. Bludit
- Posts: 7
- Joined: Fri Jul 22, 2016 1:56 am
Not sure if correct this is what I think of and would also like this feature.
Current:
Partent -> Child pages
With sub pages:
Partent -> Subpages -> Child pages
PC -> Hardware -> product name
PC -> Software-> Product name
Current:
Partent -> Child pages
With sub pages:
Partent -> Subpages -> Child pages
PC -> Hardware -> product name
PC -> Software-> Product name
I display 'sub sub pages' simply by loading another parent page inside a subpage. All my pages are hidden by default in the main navigation unless a tag is selected in the admin, like 'show in menu'.
To hide all menu items by default i created a custom navigation menu and then added the following line to the parent and child page foreach loops after the if($parent->published()){ look up the Pages plugin for more info about it.
And in page.php (or your custom template pages) use something similar to this:
There are probably 100 better ways, but this works for me.
To hide all menu items by default i created a custom navigation menu and then added the following line to the parent and child page foreach loops after the if($parent->published()){ look up the Pages plugin for more info about it.
Code: Select all
<?php if($parent->tags() == 'show in menu') { ?>display menu link<?php } ?>
Code: Select all
<?php
//check if the unlisted parent page exist
if(isset($pagesParents['your-unlisited-parent-pagename'])) {
//look up the subpages of that parent page and display.
$children = $pagesParents['your-unlisited-parent-pagename'];
foreach($children as $child) {
if( $child->published()) {
echo $child->title();
if($child->coverImage()) {
$child->coverImage();
}
}
}
}
?>