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.SiteInfo
instance representing the current site. Like all info classes it has aname
,url
, andid
.
-
loggedInUserInfo
¶ A
Products.CustomUserFolder.userinfo.GSUserInfo
instance, representing the currently logged in user. Like all info classes it has aname
,url
, andid
. In addition it has ananonymous
property, which is set toTrue
if 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"/>