Foldable page list (WP 1.5)
-
I have a plugin that will automatically expand only the sub-pages of the currently selected page in a page list, collapsing all others to their parent page. Expansion reveals one level deeper than the currently selected page, down to a maximum level determined by the value of the ‘level’ argument.
So, for a hierarchy consisting of:
Fruit
– Apples
— Red
— Green
– Pears
— Soft
— Hard
Vegetables
– Beans
— Runner beans
— Broad beans
– Greens
— Cabbage
— LettuceWith nothing selected and level=3, it would show as:
Fruit
VegetablesSelecting Fruit would show:
Fruit
– Apples
– Pears
VegetablesSelecting Apples would reveal
Fruit
– Apples
— Red
— Green
– Oranges
VegetablesSelecting Vegetables would reveal
Fruit
Vegetables
– Beans
– Greensetc…
It should retain all functionality of the standard wp_list_pages plugin since it is implemented as merely a modified (& renamed) version of that tag, but adds the selective unfolding of the page hierarchy. Syntax is identical to its precursor tag.
A page explaining installation and use, and a link to a downloadable zip archive is available at https://www.webspaceworks.com/wp-plugins/foldpagelist.html.
I hope others might find it useful, and welcome any feedback.
- The topic ‘Foldable page list (WP 1.5)’ is closed to new replies.