VoteOnSiteHeader-Talk


Return to VoteOnSiteHeader


My main concern is to allow flexibility to the group/page authors (within the privileges provided by the admin of course). It should be easy and fairly obvious to override the default situation for any group and/or any page. The desired results are to:

  1. have neither a site-wide or a group-wide header
  2. have a site-wide header only
  3. have a group-wide header only
  4. have both a site-wide header and a group-wide header

For Pm's Proposal 1

For a given Group:

  1. Neither:
    1. have no Site.DefaultGroupHeader? and no group.GroupHeader?, or
    2. have an empty group.GroupHeader? so that the Site.DefaultGroupHeader? won't be used either
  2. Group-only: have a group.GroupHeader? file
  3. Site-only: have no group.GroupHeader? file so that the Site.DefaultGroupHeader? will be used
  4. Both: have a group.GroupHeader? file with an (:include Site.DefaultGroupHeader:)

It is also necessary for an individual page to be able to override the group settings and decide on its own. This gets complicated to describe every possible case, but it is always possible to use (:nogroupheader:) and then (:include Site.DefaultGroupHeader:) or (:include group.GroupHeader:) as desired. The one case (that I can foresee) that fails is that the page cannot force a site-only header when the group.GroupHeader? includes Site.DefaultGroupHeader?.

For Pm's Proposal 2a

For a given Group:

  1. Neither: I think you need a (:nogroupheader:) in an otherwise empty group.GroupHeader? to do this - this is too weird.
  2. Group-only: I think you need a (:nogroupheader:) in group.GroupHeader? followed by the group header markup to do this
  3. Site-only: have no group.GroupHeader? file so that only Site.AllGroupHeader? will be used
  4. Both: have a group.GroupHeader? file

It is also necessary for an individual page to be able to override the group settings and decide on its own:

  1. Neither: (:nogroupheader:)
  2. Group-only: (:nogroupheader:) and (:include group.GroupHeader:)
  3. Site-only: (:nogroupheader:) and (:include Site.AllGroupHeader:)
  4. Both: this is the normal case

For Pm's Proposal 2b

For a given Group:

  1. Neither: (:nositeheader:) in an otherwise empty group.GroupHeader?
  2. Group-only: (:nositeheader:) in group.GroupHeader?
  3. Site-only: have no group.GroupHeader? file so that only Site.SiteHeader? will be used
  4. Both: have a group.GroupHeader? file

It is also necessary for an individual page to be able to override the group settings and decide on its own:

  1. Neither: (:nositeheader:) and (:nogroupheader:)
  2. Group-only: (:nositeheader:)
  3. Site-only: (:nogroupheader:)
  4. Both: this is the normal case

Scott Connard


Explanation on my vote:

Good for site wide messages, display page titles with dynamic information about a page (comments, creation date, last modified, file, hits and possibly others) this proved to be good for skins authors like myself, also important to keep this inside SiteAdmin for security. But I don't agree on (:nositeheader:) because this could be used to trick a user with a specially made GroupHeader that looks the same as a SiteHeader? if the SiteHeader? file is being used by a skin to display information about the currently browsed page. Plus, I think this is the easiest option to implement between all others and the admin has a way to comunicate with all users/editors of the site, whitout having the chance of someone supress the the content of SiteAdmin.SiteHeader?, using a (:nositeheader:) directive.

CarlosAB June 18, 2007, at 04:37 PM

About possibility 3:

I think that my reasons for not having 1a as a good option, are: simplicity and (a little bit more of) security.

Simplicity: One file only for the admin, to be sure that his message gets trough the whole site.

Security: No way to skip, supress or fake messages from the admin and it can be easily verified by users and editors - by just looking at SiteAdmin.SiteHeader? or been sure that the message comes right after a page title.

And another thing is that I'm thinking not as an editor but as an admin, I guess, so GroupHeader should be used by authors and SiteHeader? by the admin, and "skinners" only have to change $GroupHeaderFmt, to include a page (maybe SiteAdmin.SkinHeader?) it processed.

CarlosAB June 18, 2007, at 05:08 PM


Page footer

The current page footer (containing Edit - History - Print - Recent Changes - Search Page last modified on, which is specified in the Template should be moved to a SiteAdmin page and this would both meet the suggestion (2d) and provide a more and more easily customisable PmWiki! Simon

Er, no, this is part of the skin, it isn't a page! Kathryn Andersen
I have used this idea for one of my skins, but I agree that this can cause problems with section edit for instance. ~

The site-wide and group-wide headers should be controllable separately. It's easy to conceive someone who would want to suppress the group-wide header and not the site-wide one. If this option is chosen, then a wiki administrator should be advised not to define wikistyles in the site's header because they'll vanish when someone does a (:nogroupheader:)...

(:nositewideheader:) is *much* more intuitive compared to (:noallgroupheader:) (to the uninitiated, not necessarily to the crowd who would read this note). Keep in mind that all authors will see the directive up at the top of the page. IMHO if it's confusing it's distracting, even for authors who don't care much about site-wide and group-wide wikitext.

--Hagan


Another thing is that wikistyles defined in SiteHeader? can be changed by an editor just defining the same style in GroupHeader, is this the best behavior? WikiStyles defined in SiteAdmin.SiteHeader? shouldn't be honored?

CarlosAB June 18, 2007, at 06:43 PM


If this seems difficult to vote on, it is. We are now trying to find a solution for three separate issues at the same time:

  1. define a site-wide group header that can't be turned off
  2. define a site-wide header that can be turned off
  3. define a default group header to be used when a group doesn't have it's own

All of these are useful things, but do we need all of them or can some be left as a recipe. Pm, do you want to pull us back on course?

Scott Connard

Actually Scott, I think you've hit the nail on the head. These are the three things we want, now we can waste three times as much time discussing what names to use!

Scott and Simon,

I don't think these are the three things...

  1. Pm is not proposing a site-wide group header that can't be turned off. Scroll to the top of this page and read Pm's numbered list of desired results.
  2. Without a doubt we want a site-wide header that can be turned off. The questions are
    1. Should the site-wide header turn off automatically when a group header Page exists?
    2. Should (:nogroupheader:) turn off both the site-wide and group headers, or
    3. should there be a separate (:nositeheader:) directive?
  3. No matter what it will be possible to define a default group header to be used when a group doesn't have it's own. The question is whether that should be the default behavior. I don't see this happening once it's thoroughly thought through.

IMHO

  • The best solution is for the site-wide header not to "turn off automatically" by default. It should be able to be done using markup (conditional markup in the site-wide header). As a default, it could lead to unintended broken pages if there are wikistyle definitions in the site-wide header.
  • A separate (:nositeheader:) directive will give authors the most control with the least "surprise".

Coming up with names to use is probably the hardest part.

--Hagan

The list at the top of this page is confusing to me, is it an and list or an or list.

  • You ask Should the site-wide header turn off automatically when a group header Page exists?
    Its clear to me that the answer is No. This is because in a group header it can be turned off (for the group) by specifying (:nositeheader:) (I hope).
  • should there be a separate (:nositeheader:) directive?
    appealing to the principle of least surprise though consistency (with other similar features) I feel the answer is Yes.

So we are in agreement, now to convince everyone else! thanks Simon

PS:I still feel that the page header and page footer (currently templated) should be exposed as the sidebar is)
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.27 00.26 MarkupToHTML end
 4: 00.28 00.27 MarkupToHTML begin
 5: 00.28 00.27 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.29 00.28 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.30 00.29 MarkupToHTML end
 8: 00.30 00.29 MarkupToHTML begin
 9: 00.30 00.29 MarkupToHTML end
10: 00.30 00.29 now
Peak memory: 3,962,176 bytes