Warning
Starting from CubicWeb version 4.0 all code related to generating html views has been moved to the Cube cubicweb_web.
If you want to migrate a project from 3.38 to 4.* while still using all the
html views you need to both install the cubicweb_web cube AND add it to
your dependencies and run add_cube('web')
.
cubicweb_web can be installed from pypi this way:
pip install cubicweb_web
We donât plan to maintain the features in cubicweb_web in the long run; we are moving to a full javascript frontend using both cubicweb_api (which exposes a HTTP API) and @cubicweb/client as a frontend javascript toolkit.
In the long run cubicweb_api will be merged inside of CubicWeb.
Startup views#
Startup views are views requiring no context, from which you usually start
browsing (for instance the index page). The usual selectors are
none_rset
or yes
.
Youâll find here a description of startup views provided by the framework.
This module contains the default index page and management view.
- class cubicweb_web.views.startup.IndexView(req=None, rset=None, **kwargs)[source]#
- __regid__
index
The default index view, that youâll get when accessing your siteâs root url. Itâs by default indentical to the
ManageView
, but youâll usually want to customize this one.
- class cubicweb_web.views.startup.ManageView(req=None, rset=None, **kwargs)[source]#
- __regid__
manage
The manage view, display some information about whatâs contained by your site and provides access to administration stuff such as user and groups management.
Regarding the section displaying link to entity type, notice by default it wonât display entity types which are related to another one using a mandatory (cardinality == 1) composite relation.
You can still configure that behaviour manually using the indexview_etype_section as explained in
cubicweb_web.uicfg
.
Other startup views:
- schema
A view dedicated to the display of the schema of the instance