[pmwiki-users] 404 Not Found

H. Fox haganfox at users.sourceforge.net
Wed Jan 25 18:07:16 CST 2006


On 1/25/06, H. Fox <haganfox at users.sourceforge.net> wrote:
> The sticky situation is what to do when the missing page isn't
> qualified (an incomplete name).  If the incomplete name match a

s/match/matches/

> group's home page the author is take there.  When the incomplete name
> doesn't match any group' s home page it means one of two things.
>
> 1) The group exists, but has no home page.
> 2) The group doesn't exist.

#1 probably happens fairly frequently.  It's what happens when you
click a group link if you're using the default PmWiki skin's template.
 For this situation, something like the following might work well:

    (:if auth edit:)
    This group doesn't have a home page.  [Create One]

    (:ifend:)
    Here's a list of pages in this group:
    (:pagelist group={$Group} fmt=simple:)

[hasty-example-wording disclaimer applies...]

What to do for #2?  Not sure.  How often does this happen?  How would
someone arrive at a non-qualified link that's not an existing group? 
Christian suggested in a previous post that it's possibly by
misspelling a group name.  I imagine sometimes it's people URL hacking
and leaving out the group name.

How about this?

    (:if auth edit:)
    There's no home page for a group named {$Group}.  [Create One]

    (:if [a group with this name exists]:)
    Here's a list of pages in this group:
    (:pagelist group={$Group} fmt=simple:)

    (:if ! [a group with this name exists]:)
    By the way , a {$Group} group doesn't exist.\\
    Perhaps the group you are looking for is listed below?:
    (:pagelist fmt=group:)

(Is there a test to see if a group exists?)

To summarize,

    http://www.pmwiki.org/wiki/Test/MissingPage
and
    http://www.pmwiki.org/wiki/MissingGroup/MissingPage

should lead to

   MissingPage doesn't exist.  [Create it]

where "Create it" is in a button.

    http://www.pmwiki.org/wiki/ExistingGroup

should lead to

    This group doesn't have a home page.  [Create one]

    Here's a list of pages in this group:
    * Home Page
    * About This Site
    [...]

where "Create one" is in a button.  Finally,

    http://www.pmwiki.org/wiki/NoGroupByThisName

should lead to

    This group doesn't have a home page.  [Create One]

    By the way , a NoGroupByThisName group doesn't exist.
    Perhaps the group you are looking for is listed below?:
    * Main
    * PmWiki
    * Site
    [...]

That covers just about everything...or does it?  :-)

Hagan




More information about the pmwiki-users mailing list