It's been a while since the last blog post. But guess what: we've been working on improving Wikidot! The Change log says all: 29 issues has been closed since April 8th and also a lot of behind-the-scenes work has been done to improve performance and maintainability.
NewPage awesomeness="true"
First of all, the oldest of the wishes (wish no. 1) and also one of the most voted: NewPage module autosaving has been implemented. Using the mode attribute of the NewPage module pages can be created without showing the editor to the user. You can do it by setting one of two new modes: mode="save-and-refresh" or mode="save-and-go". Mode names are self-explanatory, the first refreshes the page with the module after saving the new one, the latter redirects user to the newly created page after saving it (omitting the editor completely). You can also specify a custom landing page by goTo="page-name" attribute for mode="save-and-go".
Example:
[!-- Simple TODO list --]
[[module newPage button="Add Item" category="todo" mode="save-and-go" goTo="todo-list"]]
[!-- todo-list contains ListPages module listing pages from todo category --]
The code above will show a NewPage module allowing users to enter title of the new TODO list item. Immediately after clicking "Add Item" users will be redirected to todo-list page which can list the entered items (using ListPages module) including the newly created page.
Consult the NewPage module documentation for more details.
Internet Explorer with round corners is a bit cuter now
To improve the overall appearance of the new My Account interface in Internet Explorer browsers we are now using CSS3PIE which adds support for a few useful CSS3 features to IE 7, 8 and 91. This way the interface for managing your account, messages and sites is almost as cute in IE as in other browsers. Unfortunately the CSS3PIE code has some problems with properly styling dynamically loaded content, so some rounder corners and shadows are still not rendered properly for IE.
Other small improvements
As more and more projects use includes, especially CSIs2, names of the included pages are now rendered as clickable links when showing page sources.
Recently, we added support for the AdBrite ads. Just paste the code you got from their site to the panel found at Manage Site » Advertising.
I know, Microsoft is absolutely pathetic with their builds of IE… Especially considering that they are a software company only, they ought to be embarrassed by their browser.
Thanks for the work on new features! Always funny to see Wikidot's anti-IE comments :P
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Nice features! I will take advantage of them, especially, save-and-refresh for quickly generating a short set of pages. Some way to make pages out of a (some character)-separated list of page-names would make that process even more convenient.
You can do this with the API.
Could you explain what your use case is? i.e. What would the page title, content, etc. be? Roughly how many pages?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Hi,
Well, the use case is generating a month's worth of pages, one for each day, all with the same template and in the same category, "day" (it's for a course website). I did this manually a month or so ago, but may need to re-do it if I'm assigned to teach at a different time (my assignment this summer might get switched, and some day I might teach again).
I can imagine other uses, like starting an encyclopedic wiki, and building it on some pre-existing classification rules. For example, I just saw recently that a professor/blogger at one point wanted to use JEL codes, of which there are hundreds, to organize articles on topics in economics.
Best,
Frank
EDIT: Oh, I could try out the API, too.
So does that mean only 30 pages? Or 365 pages, for all 12 months?
That is very small considering, API will be able to do it very quickly. (took me about 2 hours for 4000 pages once, to give some kind of perspective on how long it'll take).
If you'd like me to help out with writing a program for you to do this, can you PM me with the specifics? i.e. exact page names, page contents, and the site name, etc. Otherwise, if you know a programming language you can probably try doing it yourself (almost every programming language supports XML-RPC).
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Yeah, only ~30. If/when I need to do it, I'll probably try it out myself first (using "pages.save_one"), but might take you up on the offer later. Thanks
Come on !