Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subpage!
#9
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:

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.
Reply


Messages In This Thread
subpage! - by jondavjon - 2011-06-04, 09:34:46
subpage! - by yojoe - 2011-06-04, 11:08:57
subpage! - by grs84pl - 2011-06-10, 08:12:43
subpage! - by RobA - 2011-06-10, 08:31:03
subpage! - by mvlcek - 2011-06-10, 16:05:49
subpage! - by grs84pl - 2011-06-10, 18:46:38
subpage! - by mvlcek - 2011-06-10, 20:03:08
subpage! - by yojoe - 2011-06-10, 23:45:23
subpage! - by grs84pl - 2011-06-30, 04:06:53



Users browsing this thread: 2 Guest(s)