Dataform Fixier Tool

Dataform Fixier Tool

By Helmut_pdorfHelmut_pdorf on 26 Jun 2013 08:02, last edit by Helmut_pdorfHelmut_pdorf on 10 Dec 2013 17:26

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!.
Um nicht im Fehlersuchen zu versicnken hat Kenneth Tsang (user tsangktsangk eine Fixier-Wiki erstellt auf der man problemlos seine Templates-Dataform definitionen automatisch korrigieren lasssen kann.
Siehe auch den englischen Blog dazu: http://community.wikidot.com/blog:fixing-old-dataforms (Fixing old dataforms).
Dieses Tools steht auf dem Convert Wiki jedermann zut verfügung.

Der Link findet sich auch links im Menu ( Dataform Fixer) und im Top Menü unter "Dok.& Hilfe"

Einfach den kompletten Code-Inhalt der "_template" Seite - kopiert aus dem Edit Fenster ( Achtung: nicht aus dem Source-Fenster!!) in die linke seite des fensters kopieren -Kclick auf den Button und rechts sollte die korrigierte Version stehen.
( ausser es gibt Fehlermeldungen im Status-Fenter unten).

Hier die includierte Text aus dem englischen Community-BloG:


Around 2 months ago, Wikidot changed the way it processed and parsed data forms. A bug report was posted by RobElliottRobElliott, and there has been no official blog post made about it yet. But in short, old [[form]] that weren't 100% YAML compliant will not save now due to a change in the library that Wikidot uses to parse form blocks. The next couple of paragraphs explains the change, however, you can skip to the "fix" by clicking here.

Explanation

As 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 it

I have devised a simple converter script that converts the now forgiving YAML format to the new stricter sfYAML parser. You can find it at:

convert.wikidot.com

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, James KanjoJames Kanjo write an impressive piece of code that lists all pages with [[form]] blocks! Check it out here.



Sie wollen darüber auf Ihrem "Tweet" posten? ==>

Tags: convert dataform template

Related Community Blogs

No Community Blogs have similar tags to this post.

Rate it up ?

Bewertung: 0+x

Share

Bookmark and Share

Kommentare:

Gemeinschafts Blog feed-icon-14x14.png

Posts by date

Posts by tags

Posts by rating

Deutsche Wikidot User Gemeinde gestartet!
Rating: 2 (23 Aug 2010 07:10)

DSGVO-Datenschutz auf Wikidot
Rating: 1 (24 May 2018 11:28)


Blogroll

{"module":"feed\/FeedModule","params":{"src":"http:\/\/community.wikidot.com\/feed\/pages\/category\/blog\/t\/Community+blog","limit":"1","module_body":"**[http:\/\/community.wikidot.com\/ Community(engl)]:**\n%%linked_title%%\n[[size smaller]]%%date|%e %b %Y at %H:%M |agohover%%[[\/size]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/michalf.me\/feed\/pages\/category\/blog\/t\/Michal+Frackowiak%27s+blog","limit":"1","module_body":"**[http:\/\/michalf.me Michal]:** \n%%linked_title%%\n[[size smaller]]%%date|%e %b %Y at %H:%M |agohover%%[[\/size]]"}}

Sofern nicht anders angegeben, steht der Inhalt dieser Seite unter Lizenz Creative Commons Attribution-ShareAlike 3.0 License