Expand my Community achievements bar.

SOLVED

Subject schema not showing up as dropdown in Attributes panel

Avatar

Level 2

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. 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

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.  

View solution in original post

3 Replies

Avatar

Correct answer by
Level 2

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.  

Avatar

Level 2

The issue is resolved. 

Avatar

Employee

@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.