Skip to content

Commit

Permalink
[TASK] Update XSD schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed May 9, 2024
1 parent 871fcf5 commit cc08a08
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion Resources/Private/Schemas/Flux.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Defines a single field data structure.
<xsd:documentation><![CDATA[Field description]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:anySimpleType" name="exclude" default="false">
<xsd:attribute type="xsd:boolean" name="exclude" default="false">
<xsd:annotation>
<xsd:documentation><![CDATA[Set to FALSE if field is not an "exclude" field]]></xsd:documentation>
</xsd:annotation>
Expand Down Expand Up @@ -4028,6 +4028,63 @@ which use the `icon` setting to learn more about how icons are used.
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="form.option.inheritanceMode">
<xsd:annotation>
<xsd:documentation><![CDATA[### Inheritance mode option
Control how this Form will handle inheritance (page context only).
There are two possible values of this option:
- restricted
- unrestricted
Note that the default (the mode which is used if you do NOT specify
the mode with this ViewHelper/option) is defined by the Flux extension
configuration. If you do not change the extension configuration then
the default behavior is "restricted". Any template that wants to use
a mode other than the default *MUST* specify the mode with this option.
When the option is set to "restricted" either by this ViewHelper or
by extension configuration, the inheritance behavior matches the
Flux behavior pre version 10.1.x, meaning that inheritance will only
happen if the parent (page) has selected the same Form (layout) as
the current page. As soon as a different Form is encountered in a
parent, the inheritance stops. In short: inheritance only works for
identical Forms.
Alternatively, when the option is set to "unrestricted", the above
constraint is removed and inheritance can happen for Forms which are
NOT the same.
This makes sense to use if you have different page templates which
use the same values (for example a shared set of fields) and you want
child pages to be able to inherit these values from parents even if
the child page has selected a different page layout.
#### Example
<flux:form.option.inheritanceMode value="unrestricted" />
(which is the same as:)
<flux:form.option.inheritanceMode>unrestricted</flux:form.option.inheritanceMode>
Or:
<flux:form.option.inheritanceMode value="restricted" />
(which is the same as:)
<flux:form.option.inheritanceMode>restricted</flux:form.option.inheritanceMode>
/]]></xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute type="xsd:string" name="value" default="NULL">
<xsd:annotation>
<xsd:documentation><![CDATA[Mode of inheritance, either "restricted" or "unrestricted".]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="form.option.sorting">
<xsd:annotation>
<xsd:documentation><![CDATA[Form sorting option ViewHelper
Expand Down

0 comments on commit cc08a08

Please sign in to comment.