Currently when creating a new page the URL can contain information about the page. For example, the title:
/title/URL%20option%20to%20provide%20content%20when%20creating%20a%20page
Tags:
/tags/new-tags
Or a parent page:
/parentPage/start
The wish
I would also like to have some limited ability to dynamically control the content of new pages. At the moment, we can already do this statically using page templates, but the ability to specify the page's original content via URL would be particularly useful.
/content/default-content
Example use case
For example, as a "reply to this message" option in page-based forums (my main aim):
[/post:new/edit/true/content/Re:%20%%created_by%% Reply]
The result would be a "Reply" link that can be displayed alongside each post using the ListPages module. When someone clicks on that link, it would pull the created_by value for that page and insert it into the new page as the original content.
Example use case
Depending on how this feature deals with already existing pages… if it overwrote the existing content it could be used to easily de-spamify posts in James Kanjo's chatroom:
[/%%fullname%%/edit/true/content/Spam%20Removed Spam?]
The result: A two-click method of removing spam (no need to Edit, select all text, delete it, then save). Just click on the "Spam" link and re-save the page.
I would do this with just variables…. Meaning… Providing content for a page via url is maybe a bit much…. But you could imagen the name of an include page…. So your dynamic content could be generated on an include page and the variable you use in the url would be the name of the include page… And of course some extra include variables via url like you can use with the include module.
So for example
URL http://mysite.wikidot.com/pagetosee/tags/closed/include/issue_closed/wish/811
This would display a fully formatted block from the include-page (issue_closed) where the variable {$wish} will be replaced by the value 811.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
There should be a json API, this would make it easier for people to create apps for their site, only because I don't know python.
CEO of Icon Deposit
Take a look at me via Twitter, Dribbble, and Google +
Matt, I'm a little confused about what you're trying to say here. If you're referring to the current Wikidot API, there's no need to know Python to use it. All you need is an XML-RPC library. For Javascript, there's my jsAPI or Gabrys' jQuery Library.
Kenneth Tsang (@jxeeno)
Can't believe I never saw those links, definitely going to check that out. Been looking for code like that. I was referring to something like Dribbble's JSON API. Also a new app I've been creating has a JSON API as well.
CEO of Icon Deposit
Take a look at me via Twitter, Dribbble, and Google +