Extension talk:SimpleForms.php

From Organic Design wiki
Revision as of 06:03, 21 August 2007 by Eep² (talk | contribs) (Bugs: ...)

There is a MediaWiki API under development which will allow modifcation of content via request variables inherently.

It appears that links do not parser in the edit summary e.g. this diff. Would be a nice to be able to link to the form deriving content--Sven 21:29, 30 June 2007 (NZST)
SimpleForms expects wikitext with links etc to be passed, but you have to put <nowiki> around it so that it's not parsed before being assigned to the form attribute. --Nad 22:01, 30 June 2007 (NZST)

Edit forms

Initially I was thinking of having an #edit parser-function which extends the #form functionality to behave differently from action=edit and the CreateArticle specialpage.

After starting the SimpleDatabase specialpage I realised that being able to open a form ajaxly that is connected to another articles content (that article acts as the forms data-source) is more intuitive, and doesn't require two different ways of defining forms.

Possibly a better solution still could be to use an editform parameter with action=edit. The parameter would determine which definition to update (by template name, with id too if necessary to disambiguate). The parameter should also be able to specify to update all (which could be a good setting for the normal edit action's url too). Maybe allowing a list of template/id's would be good too.

  • Each template definition needs to be able specify a list of forms which are able to edit it.
  • Using action=edit with forms could be the best way to handle article updating since it would use MediaWiki's edit tokens properly

Semantic Forms

This way of integrating with the existing edit system is how the SemanticForms CreateForm special-page works. Maybe SimpleForms should not try and handle the structured data side of things at all and should only handle the functionality-based inputs.

Bugs

  1. Must have SimpleForms.php at ../extensions/SimpleForms/SimpleForms.php or a fatal error occurs.
  2. "undefinedundefinedundefinedundefinedundefinedundefinedundefined..." appears under edit buttons unless Mootools is disabled (per Gero), but then that kills a lot of SF's functionality...
  3. Ajax example makes the text after it monospace.
  4. Ajax form example doesn't work right for me; it just brings in the main page's contents instead.

-Eep² 22:28, 17 August 2007 (NZST)

Please supply links to these errors as they do not occur on this wiki which also has semantic forms etc installed, we need to see examples of the probles to be able to fix them. -Nad 13:47, August 17, 2007 (sign your posts)
  1. I already gave you an example for the fatal error.
  2. Simpleforms-bug-undefined.png
  3. {{#form:
       {{#input: type = hidden | name = content | value = {{#dpl:category={{#request:cat}}}} }}
       {{#input: type  = select
               | name  = cat
               | value = {{#request:cat}}
               | *Select category 
  • 1835
  • 2012
  • 2014 Holiday
  • 2014 Holiday in Brazil
  • 2016 Holiday in New Zealand
  • 2018 Holiday
  • 2018 Holiday in Brazil
  • ActionScript
  • AjaxMap
  • Aljezur
  • Alto Paraíso
  • Amber
  • Animals
  • Aran
  • Arca Verde
  • Arequipa
  • Argentina
  • Art
  • Articles by Infomaniac
  • Articles containing warnings
  • Articles in need of clean up
  • Articles requiring expansion
  • Articles that contain computer code
  • Artificial Intelligence
  • Auckland
  • Barry & Eduardo visiting
  • Bertrand Russell's The Problems of Philosophy
  • Beth
  • Beth's drawings
  • BioC
  • Birds
  • Birds on our land
  • Bitcoin
  • Bliki
  • Blockless
  • Blog
  • Blog items
  • Boa Vista
  • Books
  • BoxHead
  • Brasília
  • Brazil
  • Brochures
  • Build system
  • Butterflies
  • C
  • CMS
  • Cambará do Sul
  • Canela
  • Cars
  • Caterpillars
  • Cats
  • Caxias
  • Chile
  • Code in the OD SVN repository
  • Code that uses voodoo
  • Coffee
  • Cooking
  • Covershots
  • Cows
  • Cryptocurrency
  • Curitiba
  • Currency
  • Cycling
  • DEUTSCH
  • Debian
  • Debian packages
  • Decentralised
  • Decentralised social networks
  • Del & Helder's
  • Desktop environments
  • Dev
  • Devonport
  • Diagrams
  • Dinosaur
  • Distributed computing
  • Distributed processing
  • Dito e Feito
  • Documentaries
  • Documents
  • Dogs
  • Dolls
  • Domo
  • ERP
  • Ecuador
  • Education
  • Educational videos
  • Emoticons
  • Energy
  • Erich
  • Examples
  • Excluded from RecentActivity
  • Exemplary sites
  • Extensions
  • Extensions in the MediaWiki SVN repository
  • Featured categories
  • Federated
  • Firebreather
  • First flat in Brazil
  • Fliss
  • Florianópolis
  • Flower
  • Flowers
  • Fluffinha
  • Formatting templates
  • Foundation ontology
  • Foz do Iguaçu
  • Freenet
  • Gambiarra
  • Garage
  • GeSHi
  • German Lessons
  • Git-based CMS
  • Glossary
  • Graffiti
  • Gramado
  • Graphs
  • Hack
  • Hardware
  • Health
  • Help
  • Hidden categories
  • Hide categories
  • Holarchy
  • Houses
  • Human Resources
  • Humor
  • Hungary
  • I am that
  • Icons
  • Images
  • Incomplete procedures
  • Infomaniac
  • Insects & Bugs
  • Installation
  • Jack
  • JavaScript
  • Karaka house
  • Kat
  • Kerr Street
  • Lada Niva
  • Lagos
  • Lambinha
  • Land
  • Languages
  • Latin America
  • Legacy
  • Legacy Extensions
  • Legacy Projects
  • Lego
  • Libre software
  • Limma
  • Links
  • Linux
  • Livelets
  • Living Together
  • Lizards
  • LocalSettings
  • Logos
  • Mac
  • Madrid
  • Mail
  • Mailouts
  • Manasi
  • Maps
  • Maths
  • MediaWiki
  • MediaWikiLite
  • Media Center
  • Meditation
  • Meetings
  • Meme:Government failure to protect free speech
  • Meme:Vulnerability of centralisation
  • Meme:Vulnerability of centralised social networks
  • Meme:vulnerability of centralised networks
  • Mexico
  • Mexico City
  • Mice
  • Microarray
  • Milan
  • Money
  • Montevideo
  • Months
  • Mérida
  • Nad
  • Natural houses
  • Networking
  • NewDesk
  • New Zealand
  • News
  • No files or comments
  • Nodal Concepts
  • Notes
  • Nutrigenomics
  • OD2
  • Old Projects
  • Old documents
  • OpenGL
  • Optical illusions
  • Organic Design
  • Organisation
  • Organisational templates
  • Otavio Rocha
  • Our bridge
  • Our house
  • Our power project
  • Our rural net connection
  • P2P
  • PERL
  • PFS Wiki Proposal
  • Pages with broken file links
  • Pai Bitu
  • Panamá
  • Patriot Cow
  • PayPal
  • Peer-to-peer
  • Peerd
  • Peerix
  • Pensão
  • People pictures
  • Personal visions
  • Perú
  • Phalseid/Todo
  • Philosophy
  • Physics
  • Pimenta
  • Pink hair
  • Pirenópolis
  • Plants
  • Plasma reactor
  • Platform
  • Portals
  • Porto Alegre
  • Portugal
  • Portuguese lessons
  • Preferred Vendors
  • Private
  • Procedure
  • Procedures
  • Programming languages
  • Project Friends
  • Projects
  • Pudim
  • Puerto Iguazú
  • Punta Ballena
  • Punta del Este
  • Pupito
  • Quati
  • Queries
  • R
  • Recipes
  • Records
  • Resources
  • Rio Grande do Sul
  • Rob
  • Robin Patterson
  • Robots
  • Rosie
  • Ruby
  • SDL
  • SSL
  • SVG
  • Sandbox
  • Sandero
  • Santiago
  • Satire
  • Screenshots
  • Seals
  • Seaside
  • Second house
  • Secret Forest
  • Security
  • Self-improvement
  • Ships
  • Skins
  • Smartcarpetcare.com
  • Snakes
  • Snipits
  • Software
  • South America
  • Spain
  • Special categories
  • Spiders
  • Squeak
  • Squirrels
  • Stories
  • Structured Or Unstructured
  • Stubs
  • Subversion
  • Sven
  • Symbols
  • Sysop procedures
  • São Francisco de Paula
  • São Lourenço
  • TBD
  • TEX
  • Tags
  • Template:Portlet instances
  • Test
  • Tips & tricks
  • To do
  • Todo
  • Tools
  • Toyota Hilux
  • Traffic engineering
  • Training
  • Tree view
  • Tree view images
  • Trees
  • Trust groups
  • Tutu
  • USB turntable
  • Uruguay
  • User categories
  • Values
  • Vege patch
  • Videos
  • Vision
  • Vultures
  • Waiheke
  • Waiheke Island
  • Water on our land
  • Web3.0
  • Webpages
  • Wharfit
  • Wiki
  • Wiki organisation
  • Wikia
  • Wildlife on our land
  • Workshops
  • World
  • Writing
  • XmlWiki
  • XmlWiki Events
  • XmlWiki Properties
  • Yi
  • Yucatán
       }}
       {{#input: type = ajax | value = List members | update = listcat-result}}

}}

NO RESULTS TO DISPLAY YET
Note how this text is monospace (and the indentation is screwed up).
4. See http://www.tnlc.com/wiki/index.php?title=3DGC:SimpleForms and note how it pulls in the main page's content instead (just press "List members" without even selecting a category).
-Eep² 09:34, 18 August 2007 (NZST)
Well? -Eep² 18:03, 21 August 2007 (NZST)