Posted by ErichSteinboeck on 19 Jan 2008 15:00, last edited by Helmut_pdorf on 18 Jan 2022 15:06
Tags:
NDP IB Admin has reported a very nice way to display the age of a Wiki.
Step by Step
Embed the following code in your Wiki …
[[module ListPages limit="1" separate="false" order="created_at" categories="admin,nav,search,system"]]
This wiki is %%created_at|%O old.%%
[[/module]]
… to display this:
This wiki is 01 Aug 2006 01:35
How Does This Work?
It finds the single oldest page of a Wiki and displays this page's age. Since the initial pages of a Wiki are all created at the Wiki creation time, it also displays the Wiki's age.
For better performance, we restrict the ListPages search to categories admin, nav, search, and system only, since it is known that the initial pages of a Wiki are created in the those categories.
Author
ErichSteinboeck. Please visit his/her userPage.
NDP IB Admin. Please visit his/her userPage.
What kind of value should be used in the offset space? I can't seem to find a working value for that. Also, how do you identify the thread within the forum category which should be used?
http://www.wikidot.com/doc:frontforum-module
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Are there any performance disadvantages for Wikidot? If it's searching for the date of every page in your wiki, surely that's a lot of server stress?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
It's a cool tip. No real performance issue because Wikidot uses indexes on every orderBy criteria, so it's just going straight to the oldest page and picking that up.
Portfolio
James deleted Erich Steinböck as "author" - because he has not created the code…
I do not know why and what Ja,mes is doing such things… Erich has written the authorship of the other Creator as the first sentence on the page.
I find it rude to change a foreign page and delete the authorship over all communbity rules without notification, discussion with the author and the community.
I reverted it to the last revision back.
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
I find it rude to claim other people's work as your own. In Australia, it's called plagiarism and is illegal. I'm reverting back.
This is not true!
Please - Have a look at the first revision - Erich is the inventor of the trick to use a module giving back the "oldest date".
The other user has made only the changes to the mdern ListPages Module. and NOT written this article.
You cannot change a long lasting article by your quick reading over the last version.
I do not understand what is driving you against the community now?
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Oooh, I did not see that. Sorry!
Pardon? That's a big accusation to make…
Sorry, James, I am a little tired to control the changes on the community site, if someone starts a huge modification…
I believe you want to to your best for a new strucure of the page names and categories.. I know - this is difficult enough not to oversee something.
But sometimes between this changes there are some edits of the content I do not understand why they are happening and has nothing to do with the "global" changes from "include:" to "inc:" or "home:" to "start:" and other problems in the "howto:"
- quasi editing in "going by" .
I am tired to argument for a correction of such changes back , because there are only some overseen facts.
This is creating extra work for the community to change the "driver" back
Therefore my question …
ok ?
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
I understand. Sorry for the confusion I've caused.
it is ok James - You did really a big and huge work to shift the pages into the new cateories and to "clean" the commuity site.
it is not neccessary to control & clean the content in the same step!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Another important piece of advice
Ah, that's why James turned blue… :P
If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney
I think James' spring cleaning (errr… autumn cleaning Down Under!) is just great. The community site really needs it.
…as long as he doesn't touch any of my stuff.
Tried this way, Wikidots official, And a suggestion. None of them worked.
Ramon Brown
I have changed the module parameter - the date in order and list-output has changed in the last 12 years.
(but this should work anyway…)
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
(snip)
Ramon Brown
? ? ?
The (snip) was good :)
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
This should work as the howto says ( notice the changed "order " and "date"- parameter!:
This should work
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?