[ 
http://jira.nuxeo.org/browse/NXP-2312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35219#action_35219
 ] 

Anahide Tchertchian commented on NXP-2312:
------------------------------------------

I referenced them using this layout:

    <layout name="file2">
      <templates>
        <template mode="any">/layouts/layout_default_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>file</widget>
        </row>
      </rows>
      <widget name="file" type="template">
        <labels>
          <label mode="any">label.file.content</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field schema="dublincore">content2</field>
          <field schema="dublincore">filename2</field>
        </fields>
        <properties mode="any">
          <property name="template">
            /widgets/extended_file_widget.xhtml
          </property>
        </properties>
      </widget>
    </layout>

Note that template extended_file_widget will not work using the syntax 
<field>dc:content2</field> as nxd:liveEditUrl needs the schema name distinctly 
from the field name.

> live edit link does not work on other schema than file
> ------------------------------------------------------
>
>                 Key: NXP-2312
>                 URL: http://jira.nuxeo.org/browse/NXP-2312
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Bug
>    Affects Versions: 5.1.4
>            Reporter: Anahide Tchertchian
>            Assignee: Thierry Delprat
>             Fix For: 5.1.5
>
>
> I added two fields, file2 and content2 to the dublincore schema and 
> referenced them in a layout, and created a File document, setting both files.
> The live edit link for the file2 blob still opened the file:content blob.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to