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

Add exclude and order flags for namespace includes #61

Open michitux opened 13 years ago

michitux commented 13 years ago

Copied from the plugin page: It would be nice to be able to create a section like say Meetings, which is setup like: meetings:start in that Section there are multiple subpages like: meetings:20100101, meetings:20100201, meetings:20100301, etc. Now if I include the Namespace in meetings:start I also get the start page included, it would be nice to be able to have a flag to skip certain pages. Maybe I missed it and it is available, but I can not seem to find it … Another nice feature would be able to set the order in which pages are displayed…

hojo commented 13 years ago

Not sure if this is the same thing, since I've only been including individual pages or sections (not namespaces), but it would really be nice to have a flag like "&exclude=#sectionName". We have "See also" subsections that I would like to hide in pages with embedded links. That way I could create 'books' or PDFs with the hosting pages and not have to worry about hiding links to pages not included in the books.

phidele commented 13 years ago

I would like also the availability of an exclude flag for sections or/and pages. Specify an order can also be nice.

Do you have a plan to set-up a target date to achieve these features ? Thanks.

michitux commented 11 years ago

The order flags are also covered by #96, #84 has some other ideas for the exclude feature (though I think both make sense). I don't plan to set any target dates for any features of the include plugin. Unless somebody pays me for implementing them this is all "when I have time and feel like implementing them".

ajshea commented 11 years ago

With sidebar functionality in dokuwiki core now, as well as the template I use, it would be nice to be able to exclude pages like "start" and "sidebar". What would it take to get this added? =)

michitux commented 11 years ago

Concerning the sidebar: in my wiki I have the sidebar in the hidepages configuration option which is now also respected by the included plugin. Do you want another option like the hidepages just only for the include plugin or should it also be a flag or did you imagine something else?

ajshea commented 11 years ago

On 2013-03-06 22:04, Michael Hamann wrote:

Concerning the sidebar: in my wiki I have the sidebar in the hidepages https://www.dokuwiki.org/config:hidepages configuration option which is now also respected by the included plugin.

Wow, totally missed that new config option. That does what I want! How much do I owe you? =)

Alan

Alan Shea N2UDV, CSRE, CBNT Cel +231 0880-555-324 (GMT+0)

michitux commented 11 years ago

The hidepages option is nothing new, the new thing is only that the include plugin respects it when including namespaces. Note that pages that you hide using the hidepages option will be hidden from all listings (like search, index, backlinks, ...) so this might not be the best option for start pages (that's why I suggested adding a similar option to the include plugin).

If you think you could/should give me something, have a look at my donate page.