As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<type name="prfix:Type"> <title>Title</title> <parent>cm:content</parent> <properties> <property name="xxx"> <title>Prop1</title> <type>d:text</type> </property> <property name="yyy"> <title>Prop2</title> <type>d:date</type> </property> <property name="zzz"> <title>Prop3</title> <type>d:text</type> <mandatory>true</mandatory> </property> </properties> </type>
ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance()); Config wizardCfg = svc.getConfig("prfix:Type"); ConfigElement typesCfg = wizardCfg.getConfigElement("show-property");
<config evaluator="node-type" condition="prfix:Type"> <property-sheet> <show-property name="Prop1" /> <show-property name="Prop2" /> <show-property name="Prop3" /> </config>
ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance()); Config wizardCfg = svc.getConfig(yourNode); PropertySheetConfigElement props = (PropertySheetConfigElement)wizardCfg.getConfigElement("property-sheet"); List<String> propsToShow = props.getItemNamesToShow();
<config evaluator="node-type" condition="ecm:TypeName">
<config evaluator="string-compare" condition="ecm:TypeName">
ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance()); Config wizardCfg = svc.getConfig("ecm:TypeName"); PropertySheetConfigElement props = (PropertySheetConfigElement)wizardCfg.getConfigElement("property-sheet"); List<String> propsToShow = props.getItemNamesToShow();