dokufreaks / plugin-include

A DokuWiki plugin for including other wiki pages into the current one.
http://www.dokuwiki.org/plugin:include
GNU General Public License v2.0
62 stars 54 forks source link

Include a specific section of each page in a namespace #91

Open michitux opened 12 years ago

michitux commented 12 years ago

As suggested in the forum at https://forum.dokuwiki.org/thread/4096 the include plugin could support including a specific section (e.g. "ToDo") of all pages in a certain namespace, excluding pages without this section.

stephank commented 11 years ago

This already seems to work with {{namespace>foo#section}}, though it's not documented anywhere.

I have two issues with how this currently works, and I'm happy to write code for this. Just need to know how we would like to see this happen:

stephank commented 11 years ago

Well, I've more or less hacked this in on a branch on AngryBytes/plugin-include. These changes are breaking, but it's just a prototype any way.

On that branch _get_section always skips pages if the specific section is missing. (Basically clearing the instructions array.)

I've replaced the noheader config option with header as one of section, page, or none. The header and noheader flags still work as expected, and there's a new pageheader flag.

apr3ntice commented 9 years ago

Any plans for bringing these changes to release? I agree that it when including namespaces, pages without the desired section should be ignored by default