cosmocode / dokuwiki-plugin-struct

A new structured data plugin
https://www.dokuwiki.org/plugin:struct
GNU General Public License v2.0
40 stars 40 forks source link

Missing fields "hidden" and "hiddenautoinc" for struct data in bureaucracy plugin #418

Open Juergen-aus-Zuendorf opened 6 years ago

Juergen-aus-Zuendorf commented 6 years ago

Hi,

in combination with the bureaucracy plugin there are some missing fields like "hidden" and "hiddenautoinc" to set struct data automatically by certain parameters.

Best regards Juergen

splitbrain commented 5 years ago

Can you elaborate a bit more how you think this should work exactly? Eg. what are you trying to achieve and how should it be implemented in struct?

Juergen-aus-Zuendorf commented 5 years ago

The idea for this issue came up using the template mode of the bureaucracy plugin:

So your questions: The "hidden" field makes sense with the field "fieldset", e.g.:

fieldset "Norm-Art ANSI"               "Norm-Art" "ANSI"
hidden   "Norm-Art-Z00"                "=ANSI" !
fieldset "Norm-Art ASME"               "Norm-Art" "ASME"
hidden   "Norm-Art-Z01"                "=ASME" !

And the "hiddenautoinc" is good to define an identifyer for a set of structured data:

fieldset "Bearbeitung abschließen"
thanks   "Seite wurde angelegt"
hiddenautoinc "Zaehler_TM" 00000
submit   "Mitteilung anlegen"

Because I can't address the parameters in the way that the data plugin does, I have no chance to fill out struct fields. For example "@@Zaehler_TM@@" doesn't work in the struct data input fields of the template referenced by bureaucracy.

The solution could be if the struct data input fields of the template would be able to contain such syntax elements, e.g. grafik or much better in combination with other elements (e.g. preceding text or other parameters): grafik