Code Monkey home page Code Monkey logo

mediawiki-jsondata's Introduction

This is an extension which allows for form-based editing of arbitrary JSON data on-wiki. To see this in action, visit http://jsonwidget.org/wiki/JsonData

Installation instructions for JsonData

  1. Copy the extension as "JsonData" into the extensions directory
  2. Configure the extension in LocalSettings.php. An example configuration can be found in example/LocalSettings_example.php

This should be enough to get up and running.

Testing

A few tests to try with the example configuration:

  1. Create a page "Address:Test". This is an example of a basic address book.
  2. Create a page "Data:Test". This is an example of free-form JSON editing sans schema.
  3. Copy an example schema to the wiki. Create "Schema:SimpleAddr", and copy in the contents of simpleaddr-schema.json. Surround the contents with a tag.
  4. Move your config on-wiki and make a modification a. Copy the contents of example/configexample.json to a new article called "JsonConfig:Test". Be sure to leave either or tags around the JSON data. b. Set $wgJsonDataConfigArticle = "JsonConfig:Test" in LocalSettings.php c. Edit JsonConfig:Test, changing the following values: ['tags']['address']['schema']['srctype'] from "predefined" to "article" ['tags']['address']['schema']['src'] to "Schema:SimpleAddr"
  5. Edit "Schema:SimpleAddr", adding or removing a field
  6. Create a page "Address:Test2", and note your change to the schema.

mediawiki-jsondata's People

Contributors

robla avatar

Stargazers

 avatar  avatar Milkii Brewster avatar Anuruddha avatar Dirk Adler avatar Kevin Lewandowski avatar Eugene Chernyshov avatar  avatar Rock Howard avatar

Watchers

Ian Ibbotson avatar Hashim MH avatar  avatar

Forkers

atdt

mediawiki-jsondata's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.