m (Added paragraphs)
ws-seo
Line 1: Line 1:
 
+
{{SEO
 +
|Title=Open CSP Class definitions
 +
|Keywords=OpenCSP,class,definitions,documentation
 +
|Description=All about the class definitions that Open CSP uses to define page types.
 +
|Image=OCSP-Documentation.jpg
 +
|Image alt=Open CSP Documentation Banner
 +
|Section=Documention/Open_CSP
 +
|Published time=2023-10-01
 +
}}

Revision as of 19:18, 27 October 2023

In Open CSP you can add structured data to content pages by using class definitions. A class definition is a configuration for a specific type of page.

For example you might have a "Person" class definition. On the class definition page you can configure that a person has parameters such as a first name, last name and date of birth.

When a user creates a person page, they will have the option to fill these fields (or you could also configure them to be mandatory).

The data is by default displayed in a sidebar on the right side of a page, but this layout can also be configured through the class definition.

Managing class definitions is typically done by administrators, while users can create content pages with the defined classes.

Data is stored in slots, so that users can edit the main content of a page in the same way as you would edit any wiki page, without having templates and other non content related items.