Could I ask for Your's favore again?
Could You wrote me, how to make list of subpages of page where I am.
Got:
top
-1st_level
--2nd_level
--2nd_level
--2nd_level
---3rd_level
---3rd_level
---3rd_level
--2nd_level
---3rd_level
---3rd_level
I need to have one function to paste on each page to display only subpages (one level lower) of this specific one, where I am.
Please Help
Best Regards
Grzegorz
edit!
As I'm not lazzy I've made this:
I save it as new component, call it with DynPages on every page I need.
Maby it will be usefull for somebody.
Could You wrote me, how to make list of subpages of page where I am.
Got:
top
-1st_level
--2nd_level
--2nd_level
--2nd_level
---3rd_level
---3rd_level
---3rd_level
--2nd_level
---3rd_level
---3rd_level
I need to have one function to paste on each page to display only subpages (one level lower) of this specific one, where I am.
Please Help
Best Regards
Grzegorz
edit!
As I'm not lazzy I've made this:
Code:
<?php
$children = return_i18n_pages();
foreach ($children as $child){
if ($child [url] == return_page_slug()){
echo '<ul>';
foreach ($child[children] as $slug){
echo '<li>';
get_i18n_link($slug);
echo '</li>';
}
echo '</ul>';
}
}
?>
I save it as new component, call it with DynPages on every page I need.
Maby it will be usefull for somebody.