31 Aug 16:34
Customizing Pier
From: Squeaker <squeakman <at> gmail.com>
Subject: Customizing Pier
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-08-31 14:35:03 GMT
Subject: Customizing Pier
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-08-31 14:35:03 GMT
Greetings, I am just starting to poke around Pier and I am trying to figure out how to hide the "Views" menu from a non-admin user. I can change the permissions for "Other" so that there are no menu choices under the "Views" menu but the box with the word "Views" still appears. I would like this to not be shown. How can this be done? Just to clarify, what I mean by the "Views" menu is the menu on the left hand side. There are three menus on the lhs: Views, Commands and Navigation. I want the Views menu to not appear at all. Thanks, Frank _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki
> Of course I have more questions. My experimenting leads me to believe
> that there is one Design for the entire kernel, is this true?
No. The page "/environment" defines the default design (it is sort of
a meta-page for Pier). In the settings of the root page you see that
the environment is set to "/environment".
> I am hoping that I can customize the design on a per page basis as
> opposed to having one global design.
Now you can copy the default environment, modify it and go to a
different page. In the settings of this other page you select the
copied environment. Here you go, now you have two different designs.
Child structures will inherit the design of their parent, if the
structure does not define the design.
> Another question: How does one go about creating a new kernel?
Evaluating
PRPierFrame initialize
will guide you through the process of creating a new kernel and
register it as a Seaside entry point. You might want to have a look at
that code, to see how it exactly works (essentially it just creates an
instance of PRKernel, creates a new Seaside application and tells it
to use the new kernel instance).
Cheers,
Lukas
RSS Feed