Dataform Fixier ToolBy Im Jänner 2013 hat Wikidot die Bibliothek für die Template-Dataform Codierung geändert und damit plötzlich alte _templates mit bis dahin geduldeten Fehlern zu fehlerhaften dataform templates gemacht - das Speichern geht nicht mehr!. Around 2 months ago, Wikidot changed the way it processed and parsed data forms. A bug report was posted by ExplanationAs most of the people who use data forms know, Wikidot employs the YAML within the [[form]] syntax. Previously, a forgiving parser (namely SPYC) was used to parse and extract these values. Forgiving means that tiny mistakes in the markup are still interpreted "correctly". However, due to the amount of errors that this code has supposedly created on the servers1, Wikidot has now forced YAML validation using the sfYAML library whenever [[form]] blocks are saved. That means all form blocks need to be 100% valid when on save (this, however, excludes the API's pages.save_one). Fixing itI have devised a simple converter script that converts the now forgiving YAML format to the new stricter sfYAML parser. You can find it at: All you have to do is copy and paste the *entire* _template file with the [[form]] blocks included and the converter will spew out a fixed version of the YAML code. Also, if you need help finding all your data form templates in your site,
Tags: convert dataform template Related Community BlogsNo Community Blogs have similar tags to this post. Rate it up ?ShareKommentare:(Anzahl Kommentare: 0) |
Gemeinschafts Blog
Posts by datePosts by tags
anonym
autofill
autosave
blog
button
convert
dataform
datenschutz
dsgvo
editor
extensions
files
forum
kalender
leiger
mass-delete
massen-löschen
multi-pm
newpage
notgood
open
pm
policy
private-nachrichten
snippet
start
tags
template
translate
tweet
wikidot
Posts by ratingDeutsche Wikidot User Gemeinde gestartet! DSGVO-Datenschutz auf Wikidot Deutsche Übersetzung von Wikidot-Befehlen und Phrasen Blogroll |
Dataform Fixier Tool
Seiten Revision: 7, zuletzt bearbeitet: 10 Dec 2013 17:26