(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
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.
ws-class-props
Line 2: Line 2:
 
|Subject version=2.0
 
|Subject version=2.0
 
|Doc subject=DevOps:Doc/Open CSP
 
|Doc subject=DevOps:Doc/Open CSP
 +
|Doc synopsis=How to use class definitions
 +
|Doc parent=
 +
|Doc sort order=80
 +
|Doc target group=Administrator
 
}}
 
}}
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
 +
}}

Latest revision as of 20:20, 2 November 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.