I have created a subject schema; here is the sample code:
<subjectScheme>
<title>Subject Schema Definition</title>
<!-- 1) Permissions (for prolog@view) -->
<subjectdef keys="permissions">
<subjectdef keys="perm_internalonly">
<topicmeta>
<navtitle>InternalOnly</navtitle>
<shortdesc>Only visible to internal staff</shortdesc>
</topicmeta>
</subjectdef>
<subjectdef keys="perm_lix_experiment">
<topicmeta>
<navtitle>LIX_experiment</navtitle>
<shortdesc>Experimental LIX audience</shortdesc>
</topicmeta>
</subjectdef>
<subjectdef keys="perm_lix_control">
<topicmeta>
<navtitle>LIX_control</navtitle>
<shortdesc>Control group for LIX experiments</shortdesc>
</topicmeta>
</subjectdef>
</subjectdef>
<enumerationdef><!-- bind to prolog@view -->
<elementdef name="prolog">
</elementdef>
<attributedef name="view">
</attributedef>
<!-- point to the subject group defined above -->
<subjectdef keyref="permissions">
</subjectdef>
</enumerationdef>
<!-- 2) Platform (for metadata@platform) -->
<subjectdef keys="platforms">
<subjectdef keys="platform_mobile">
<topicmeta>
<navtitle>Mobile</navtitle>
<shortdesc>Mobile platforms</shortdesc>
</topicmeta>
</subjectdef>
<subjectdef keys="platform_desktop">
<topicmeta>
<navtitle>Desktop</navtitle>
<shortdesc>Desktop platforms</shortdesc>
</topicmeta>
</subjectdef>
<subjectdef keys="platform_web">
<topicmeta>
<navtitle>Web</navtitle>
<shortdesc>Web platform</shortdesc>
</topicmeta>
</subjectdef>
</subjectdef>
<enumerationdef>
<elementdef name="metadata">
</elementdef>
<attributedef name="platform">
</attributedef>
<subjectdef keyref="platforms">
</subjectdef>
</subjectScheme>
The subject schema shows up in the Subject Schema panel in AEM Guides Web Editor. And these can be applied using drag-and-drop functionality. I do not get any errors when the subject schema is applied and saved. However, the values of the attributes are not getting bound by the subject schema. In other words, the values of the attributes in the Attributes panel are not showing up as drop-down values.
Any input on how I can get the values of the attributes defiined in the subject schema show up as drop-down in the Attributes Panel?
@DivrajSingh or anyone on group, your guidance is much appreicated.
I am testing this with latest AEM cloud SDK package.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Sorry missed mentioning this detail in the post: The Platform attribute is bound by the values defined in the subject schema; I do get a dropdown for the Platform attribute in the Attributes panel. However, the same is not happening for view attribute for permissions elment.
Sorry missed mentioning this detail in the post: The Platform attribute is bound by the values defined in the subject schema; I do get a dropdown for the Platform attribute in the Attributes panel. However, the same is not happening for view attribute for permissions elment.
The issue is resolved.
@AravindAnand : the General tab on Workspace settings has toggles to enable validation based on attributes of subject scheme or general condition attributes - you can enable those to let users use them as needed.
The usage is also described in the documentation - refer this page
I hope this helps.
Views
Likes
Replies
Views
Likes
Replies