[pmwiki-users] Cookbook:CommentBoxPlus question

James Gotner James.Gotner at edcc.edu
Mon Sep 25 13:33:08 CDT 2006

Thanks Crisses for following up on this...  I wasn't quite sure if it
got lost in the fray or if Patrick was showing me that :commentbox: was
going to be implemented into pmwiki in 2.2 with some changes.  The
response was kind of on topic, so it threw me off and I was waiting to
see if anyone else picked this up.
Looks like I need to clarify one thing since I didnt know the correct
terminology.  When I mentioned having a site-wide layout, I meant within
a group of pages (Main being one site, MyTopic being another).  I wanted
to limit this to MyTopic.[All Content].
Anyhow, when I place it in MyTopic.GroupHeader, it comes out:
-- Commentbox
-- Comment #1
-- Comment #2
-- Wiki Content
But when I put it in MyTopic.GroupFooter:
-- Comment #2
-- Comment #1
-- Wiki Content
-- Commentbox
What I'm looking for (for comparison):
-- Wiki Content
-- Commentbox
-- Comment #2
-- Comment #1
Right now, the only way I can see getting this to work with my format,
is to manually place the comment box and comment box anchor in each
page.  Can anyone comment on if this is a bug or was it designed this
way, or if it's even possible to get it to work the way I want?


From: Eclectic Tech, LLC Info [mailto:info at eclectictech.net] 
Sent: Saturday, September 23, 2006 4:53 AM
To: James Gotner
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Cookbook:CommentBoxPlus question

On Sep 22, 2006, at 12:49 PM, James Gotner wrote:

	Not sure if we are supposed to post questions about cookbook
recipes here...

	I am trying to figure out where I need to put (:commentbox:)
[GroupHeader / GroupFooter / Somewhere else] so that (for an entire
site) the layout would be:

	-- All wiki content

	-- Comment box form

	-- Comments with newest first.

	   Is this possible?


Did your question get lost in the fray? I see that Patrick answered
something entirely different to you in the thread.  Oops.

Whenever we're deliberating features for a major new jump ahead, people
post rather quickly and many new posts come up.                      

Here's your answer:

You want a page like Site.PageFooter.  I'll figure out if it exists :)

I searched pmwiki.org for "site footer" and this page        
comes up.  It's not in that list.  So I don't think there's a site-wide
page like {Group}.GroupFooter

The skin you use MAY define such a page.  It just doesn't seem to be
part of the core.

Now, how would you do this:  I go into each group and define the group
footer.  Here's the documentation for this:

NOW I found where the site-wide header/footer is mentioned.  So I'm
going to point to this in the PmWiki/SitePages.  :)  Because it ought to
be documented somehow.

You can use the config.php directives as explained:

How do I set one header for all pages/groups?

The header for each page is controlled by the $GroupHeaderFmt
variable. Thus a site-wide groupheader can be added with
$GroupHeaderFmt = '(:include {$SiteGroup}.SiteHeader:)(:nl:)' .
(note that single quotes must be used so that $Group (which is part of
the default contents of $GroupHeaderFmt
<http://www.pmwiki.org/wiki/PmWiki/LayoutVariables#GroupHeaderFmt> )
will be substituted properly by PmWiki, and that this applies to all
variables ending in $...Fmt)

And set a single site-wide footer page at Site.SiteFooter if you want
(or any other page to use as the site-wide footer).

If you want to eliminate certain groups from this -- such as the Site
and PmWiki groups:

if ($Group != "Site" && $Group != "PmWiki")  {
$GroupFooterFmt = '(:include Site.SiteFooter)(:nl:)' . $GroupFooterFmt;

Then make Site.SiteFooter look however you want things to appear UNDER
the wikitext.

Questions?  I haven't used the (:commentbox:) recipe, so maybe someone
has comments about that part.

Also, you might not want this on other groups, such as Main -- but
that's up to you :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060925/3e9b0582/attachment.html 

More information about the pmwiki-users mailing list