[Pmwiki-users] Skins
Patrick R. Michaud
pmichaud
Sun Feb 22 01:22:03 CST 2004
Oops--I forgot a couple of key details!
The page that is using the new templated layout is at
http://www.pmichaud.com/wiki/PetWiki/HomePage
The code I placed in config.php (actually local/PetWiki.php) to
activate this layout is simply
$PageTemplateFmt = 'pub/skins/allcritters/allcritters.tmpl';
Note this approach doesn't work in 0.6.0--it'll have to wait for the
0.6.1 release.
Pm
On Sun, Feb 22, 2004 at 12:40:24AM -0700, Patrick R. Michaud wrote:
> Hi, Lee--
>
> First, thanks for your excellent comments and for giving me another
> layout to work on. Based on your comments and the comments of others
> I've redesigned the layout system to get rid of the complexity, and I
> need to see if this would've worked better for you and saved you
> days of banging your head against the code...
>
> Instead of having separate layout variables, the entire page layout can
> now be specified in a template file. The main PmWiki site is now running
> this new code, and you can see the layout files (both template and .css)
> in their entirety at http://www.pmichaud.com/pmwiki/pub/skins .
> The files used for the PmWiki default layout is in the pmwiki/
> subdirectory, and I recreated an "allcritters" skin based on your
> original URL using this new templated approach.
>
> PmWiki performs a number of substitutions on the template file when
> it's time to display a page. In particular, $ScriptUrl becomes the
> URL to your copy of pmwiki, $Group is the name of the group, $Title
> is the page title, etc.
>
> The HTML comment <!--PageText--> marks where the page's wiki contents
> are to be displayed. In addition, the HTML comment
> <!--wiki:PetWiki.SideBar--> says to display the contents of the
> "PetWiki.SideBar" page at that point in the HTML.
>
> I can't think of much else to add at the moment, other than to ask
> if you think this approach (along with sufficient documentation) would've
> gotten you to your desired destination in a reasonable timeframe?
>
> Thanks again for your excellent feedback, your patience, and for
> not abandoning PmWiki (you spent longer at it than I would've!).
>
> Pm
>
>
> --
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list