James Kanjo wrote on 20 Apr 2010 09:39
If a page doesn't exist, then the default page title is “The page does not (yet) exist.” and the default content is:
The page //%%fullname%%// you want to access does not exist.
* [[button edit text="create page"]]
To demonstrate, if I were to access the inexistent /james page, then the following would be rendered:
The Problem
We need to be able to choose the content we display if a page doesn't exist. Perhaps we don't even want to pose the “create page” option to users.
The Design
Similar to *:_template, I propose we have *:_404 to decide the content of pages that don't exist.
The title you specify on the *:_404 page is the title that appears on the inexistent page.
For example: if I create the page draft:_404 and make it's page title as “Sorry!”, then when I access the inexistent draft:test page, the title will be “Sorry!”
If no *:_404 page exists, the default format will be as it always has been:
The page //%%fullname%%// you want to access does not exist.
* [[button edit text="create page"]]
Any category that doesn't have the *:_404 page specified will inherit the wiki's /_404 data.
Great idea. We'd like to implement this, but we'd like to propose different names for such pages:
Please choose one. BTW, we like _404 the best.
Glad you thought so :)
404 is a very appropriate name… so yes, I do think _404 is the best also
I don't care what it's called, just the ability to do this would be so useful! :)
But yes, I agree that _404 makes the most sense. Either of those are fine though IMO. The second two may make more sense to less-technical users.
Now… if I understand this correctly, not defining a cat:_404 page will mean that the cat category will inherit from the _default:_404 page… and if that doesn't exist, it will display the default Wikidot message for a non-existent page. Is that right?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Yes, it seems to be the most intuitive solution.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
This is a great idea. Then I could write "This page doesn't exist" in Serbian… :) I vote it!
If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney
Actually, that's a brilliant use case for this! Fantastic concept Brunnie!