BaselineIT / dokuwiki-pagemod

Dokuwiki Pagemod
GNU General Public License v2.0
4 stars 14 forks source link

The target page name cannot include dash character ("-") #44

Open winakeytoheaven opened 4 years ago

winakeytoheaven commented 4 years ago

See the following code:

^Column 1 ^Column2 ^Column3 ^
|Data 0-1 |Data 0-2 |Data 0-3 |
|Data 1-1 |Data 1-2 |Data 1-3 |
<pagemod table_record output_after>
|@@Field 1@@ |@@Field 2@@ |@@Field 3@@ |
</pagemod>

If the target file name is "table-record" instead of "table_record", the whole <pagemod>...</pagemod> block will be rendered as text instead of becoming functional.

Moral of the story: your pages can't have "-" in their names.

winakeytoheaven commented 4 years ago

Sorry, I mis-spoke. The problem is NOT in the target file name, it's the pagemod-id value which cannot tolerate a dash character. My example is correct, but my identification of the data parameter was wrong.

By the way, I have updated the plugin's page at Dokuwiki to reflect this information.

Floffyko commented 2 years ago

Good to know, Thanks. Somehow I understood reflexively that DW realm love underscore. This plugin in tandem with bureaucracy is he icing on the cake in term of simplicity of inserting complex forms in one or multiple pages. (I do not dare to speak about Struct Plugin here) In fact there is almost no limit to what you can do with it.