I would like to create new pages using a storage format (because I want to dynamically set certain macro parameters which I cannot set using space templates).
Displaying the value of a ConfiForms field of type "Storage format" would look alright, but the page contains only the reference to the stored field and you are not able to edit the page as if it was a copy of the original one.
Applying the "storageToHtml" virtual function (and use the entry as macro body of "CreatePage") to the "Storage format" field would give an editable page but removes all macros contained in the original page.
So, is there a way to create a page (through ConfiForms) defined by a storage format?
You can reference space template by ConfiForms Create Page macro and in that template have references to fields (field values) via [entry.field_name] notations or even the Velocity templating that should allow you to parameterized whatever you want in a template
Using Velocity variables should do it. Some macros are displayed like "Unknown macro 'myParameter'" (in the template editing view) but the result (using the template to ceate a page) is correct nevertheless.
Little bit strange, isn't it.
But thanks a lot, I guess "should allow you to parameterise whatever you want" convinced me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is an unfortunate old bug in Confluence editor - rendering a macro as unknown when one of the parameter values contains {}
(can be safely ignored, as this is just an editor's UI glitch)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.