cancel
Showing results for 
Search instead for 
Did you mean: 

How to use environment variable in slot-content ?

Ahmad_Ben_Maall
Star Contributor
Star Contributor

I added a custom property to the nuxeo.conf file. I want to use this custom property in webui.

For exemple in slot-content

<nuxeo-slot-content name="defaultMY_SLOT_NAME" slot="MY_SLOT_NAME">
  <template> <my-element my-element-property=[[my-custom-property-from-nuxeo.conf]]>
</my-element>
</template> 
</nuxeo-slot-content>

Thank you in advance, Ahmad.

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

I don't think this use case exists in Web UI. The only thing I know is to retrieve any value from nuxeo.conf on the backend part (Modeler) using Env["my.nuxeo.conf.key"] in an automation scripting for example. So, the idea would be to retrieve this value on the Polymer part of your element calling an automation scripting returning this value. Probably better options exist.

Regards

Hello,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.