• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0 alpha
    • None
    • None
    • None

        [CMS-6241] dynamic xtypes for widgets

        Here the patch for workspace.xsl

        // Dynamically attach the xtype
        Ext.ClassManager.aliasToName["widget.<xsl:value-of select="widget/@id"/>"] = "<xsl:value-of select="widget/action/@class<span class="code-quote">"/>";
        Ext.ClassManager.nameToAliases["<xsl:value-of select="widget/action/@class<span class="code-quote">"/>"] = Ext.Array.from(Ext.ClassManager.nameToAliases['Ametys.runtime.form.widget.Text']).push("widget.<xsl:value-of select="widget/@id"/>");
        

        to replace

                                   <xsl:value-of select="widget/action/@class"/>.xtype = "widget.<xsl:value-of select="widget/@id"/>";
        

        Raphaël Franchet added a comment - Here the patch for workspace.xsl // Dynamically attach the xtype Ext.ClassManager.aliasToName[ "widget.<xsl:value-of select=" widget/@id "/>" ] = "<xsl:value-of select=" widget/action/@ class span class="code-quote">"/>" ; Ext.ClassManager.nameToAliases[ "<xsl:value-of select=" widget/action/@ class span class="code-quote">"/>" ] = Ext.Array.from(Ext.ClassManager.nameToAliases[ 'Ametys.runtime.form.widget.Text' ]).push( "widget.<xsl:value-of select=" widget/@id "/>" ); to replace <xsl:value-of select= "widget/action/@class" />.xtype = "widget.<xsl:value-of select=" widget/@id "/>" ;

          Unassigned Unassigned
          raphael Raphaël Franchet
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: