turnermm / TextInsert

A macro utility for Dokuwki
http://www.dokuwiki.org/plugin:textinsert
8 stars 4 forks source link

Context of macro variables #18

Closed moz0817 closed 5 years ago

moz0817 commented 5 years ago

If I use a macro with a variable (i.e.#@ID@# ) in the sidebar, the value is always taken from the sidebar. Is it wanted like that? For me a dynamic value from the current page would be more useful.

turnermm commented 5 years ago

The sidebar is a wiki page, so the ID is the id of that page.

turnermm commented 5 years ago

I've added a fix for this case. See the descitpion on the plugin page and download the update.

https://www.dokuwiki.org/plugin:textinsert#standard_namespace_macros