Page Components
From E-Democracy.org
Content Providers
Content providers are indivisible content displays or widgets - the providers of content and structure for complete components (e.g. a post) that can be included as part of an overall page (e.g. the topic display page).
Most Content Providers are declared in an egg's configure.zcml to have a name, a class, a template, and maybe a factory or adaptor. Content Providers are included on pages by using the tal:replace or tal:content tags and the structure
While quite common in GroupServer, these are mostly being phased out in favor of the more flexible Viewlets and Viewlet Managers.
gs.viewlet.contentprovider.SiteContentProvider
The base for content providers used on a site. It is simply an object with knowledge of the context, request, and view. It provides the following properties:
- siteInfo - A groupserver.SiteInfo instance
- loggedInUser - A groupserver.LoggedInUser instance
gs.group.base.contentprovider.GroupContentProvider
Base for content providers that are intended to be used in a group. This is a subclasses of SiteContentProvider, and provides the following properties that are relevant for groups:
- groupInfo - A groupserver.GroupInfo instance.
- viewTopics - Indicates if the user has permission to view topics in the group.
- isAnnouncement - Indicates if the group is an announcement group.
Home - Mobile - Forums - Wiki - Blog - About - Help - Contact - People - Donate - Rules - Archives