The procedure of modifying entry dialogs fields based on ObjectUI is completely the same as the procedure of modifying search dialogs.
Therefore, look at:
Init section of an entry dialog ensures a proper initialization of the dialog fields. An example of Init section of the <objectUI name="NewArticle": <init> <gn4:folderObject> <xsl:if test="$pars and $pars/*/add[@key='name']"> <xsl:attribute name="name"> <xsl:value-of select="$pars/*/add[@key='name']/@value"/> </xsl:attribute> </xsl:if> <xsl:if test="$pars and $pars/*/add[@key='folderId']"> <gn4:folderRef> <xsl:attribute name="idref"> <xsl:value-of select="fn:objectIdToString($pars/*/add[@key='folderId']/@value)"/> </xsl:attribute> </gn4:folderRef> </xsl:if> <xsl:if test="$pars and $pars/*/add[@key='storyCats_0']"> <gn4:cats> <xsl:for-each select="$pars/*/add[starts-with(@key,'storyCats_')]"> <gn4:ref idref="{substring-before(@value,'|')}" weight="{substring-after(@value,'|')}"/> </xsl:for-each> </gn4:cats> </xsl:if> </gn4:folderObject> </init> |