splitbrain / dokuwiki-plugin-data

Add and query structured data in your DokuWiki
http://www.dokuwiki.org/plugin:data
GNU General Public License v2.0
50 stars 34 forks source link

missing datas - bug or am I stupid? #217

Open Django-BOfH opened 6 years ago

Django-BOfH commented 6 years ago

System: CentOS 6 Apache 2.4 Release 2018-04-22a "Greebo" Template: bootstrap3 all plugins are up2date

based on https://www.dokuwiki.org/plugin:data:list_of_employees (which is working very well) I tried to build a swap-market for our organisation.

new.txt

=== Neue Anzeige anlegen/hinzufügen ===

<form>          
Action template flohmarkt:template flohmarkt:
Thanks    "Inserat im SCHWARZEN BRETT hinzugefügt"

Fieldset  "Inserat"
hiddenautoinc  "Nummer" @
Select    "Rubrik" "Kinder|Bücher|Freizeit|Sport"
Textbox   "Titel" @
Textbox   "Beschreibung" !
Textbox   "Preisvorstellung" !

Fieldset  "Adressdaten"
Textbox   "Name" !
Textbox   "Organisationseinheit"  !
email     "eMail" !
Textbox   "Rufnummer" !

Submit
</form>

template.txt

====== edit ======
---- dataentry ----
type                 : flohmarkt
nummer               : ##Inserat Number##
rubriks              : ##Inserat Rubrik##
titel                : ##Inserat Titel##
bechreibung          : ##Inserat Beschreibung##
preisvorstellung     : ##Inserat Preis##
name                 : ##Name des Inserierenden##
organisationseinheit : ##Organisationseinheit der Kontaktperson##
email_mail           : ##eMail-Adresse der Kontaktperson##
rufnummer            : ##Rufnummer der Kontaktperson##
----

What I've done?

I tried to insert a new article: screenshot at 2018-07-17 09-43-11

A new page is generated as expected: screenshot at 2018-07-17 09-47-29

But the new generated page :flohmarkt:2_1984 has no dates I've entered earlier - the new generated page is exactly the same as my template.txt. Am I stupid? I hope not!

splitbrain commented 6 years ago

Your placeholder vairables are named wrong. Your Field is named Beschreibung, your placeholder should be ##Beschreibung## then.

Django-BOfH commented 6 years ago

Ahhh O.K. does it mean that I must the same keyword like

====== edit ======
---- dataentry ----
type                 : flohmarkt
nummer               : ##Nummer##
rubriks              : ##Rubrik##
titel                : ##Titel##
beschreibung         : ##Beschreibung##
preisvorstellung     : ##Preisvorstellung##
name                 : ##Name##
organisationseinheit : ##Organisationseinheit##
email_mail           : ##eMail##
rufnummer            : ##Rufnummer##
----

right?