Hi,
I started playing around with these plugins (structured data (sqlite) and bureaucracy). I created:
- a dataentry page (used as a template for new pages containing actuall data)
- a datatable page (displays the data collected from all the dataentry pages)
- a form page where users can add data trough a bureaucracy form (that uses the dataentry page as template)
Everything was done in the playground namespace since I am just playing around and learning for now...
In order to see if the datatable page would display what I want I manually created other dataentry pages containing real data. These are correctly displayed on the datatable page :)
Then I tried using the bureaucracy form page to add more data. Whenever I do this I get a newly page created at the right place (playground:pagename) and the name of the page corresponds to what I entered into the form.
However none of the fields are modified from the template. Basically, what I get is a new page that is a copy of the datentry template page but with a new name (that I entered in the corresponding field in the form).
I double checked that the labels in the bureaucracy form correspond to the column names (placeholders) in the datentry page (the template), but still...
I bet I am missing something very obvious and that my mistake is trivial and common among newbies but I cannot spot it yet.
Any advice?
Thank you very much in advance for your help.
Best,
-a-
EDIT:
a little bit of progress here. I modified my template page accordingly
---- dataentry name ----
placeholder1 : @@placeholder1@@
placeholder2 : @@placeholder2@@
placeholder3 : @@placeholder3@@
----
and now once I complete the bureaucracy form (that asks to input values for placeholders1-3) the new page is created with the corresponding values :D
However, for placeholders that are not mandatory (in my case, placeholder3 is "remarks") the value in the newly created page is not empty but rather @@placeholderX@@ (in my case @@remarks@@)
I keep on diggin' :)
Solved that by using @@remarks|@@
the "nice alternative" is actually nothing and thus leaves the field empty if no remark is added in the bureaucracy form :)