Scrivito lets you compose pages by placing widgets on them. Widgets are graphical components specialized in handling a dedicated type of content i.e. headlines, images, forms, etc. Widgets are not autonomous points of reference in the CMS like pages, binaries, etc. but are part of a particular page. Widgets can also be shared across different page types, duplicated, moved around and more.
Widget class has similar functionality as the
Obj class in that it lets you customize how individual types of content should be handled, presented, and edited. For this, widget classes can be created with unique attributes and rendering functionality. Analogous to the creation of object classes for CMS objects, custom widget classes can be created using
Scrivito.provideWidgetClass(). Scrivito derives them from
You can also customize the built-in widget classes, simply by redefining them. Widgets of the
ImageWidget class, for example, handle and display image objects. Scrivito takes care of the basic functioning like fetching, scaling or cropping them, but you can add as much functionality to them as you want, provide them with a caption or a tooltip, rotate them via CSS, etc.