Pages¶
A gs.content.base.SitePage is a concrete class that can
be used for creating pages in GroupServer.
-
class
gs.content.base.SitePage(context, request)¶ A page on a GroupServer site
Parameters: - context – The context of the page
- request – The current HTTP request
-
siteInfo¶ A
Products.GSContent.view.SiteInfoinstance representing the current site. Like all info classes it has aname,url, andid.
-
loggedInUserInfo¶ A
Products.CustomUserFolder.userinfo.GSUserInfoinstance, representing the currently logged in user. Like all info classes it has aname,url, andid. In addition it has ananonymousproperty, which is set toTrueif the user is not logged in.
Example¶
It can be used with just ZCML. For example, the help-index is
defined in gs.help:
<browser:page
name="index.html"
template="browser/templates/help.pt"
for=".interfaces.IGSHelp"
class="gs.content.base.SitePage"
permission="zope.Public"/>