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

macro interpretation only works for page ids, not for sections #265

Open JuliaS92 opened 3 years ago

JuliaS92 commented 3 years ago

Hello dokufreaks,

I struggled a while to find out why this doesn't work: {{section>meeting:minutes#@WEEK@_@YEAR@}}

The expected behaviour would be to include the section of the current week. Instead the whole page was included because the macros are only applied for pages and not sections, consequently it can't find the correct section to include.

Could you either add _apply_macro for sections too, or add this limitation to the docs?

A workaround would be to have individual wiki pages meeting:minutes:weekyear and include them like this: `{{page>meeting:minutes:@WEEK@@YEAR@}}`

Thanks a lot Julia