Custom Widget Iframe, how do you access properties?

I've created an iframe .xhtml file that I added to a document model as an advanced widget > template. The iframe loads fine but I was wondering if there was a way to access some of the schema fields for that document from the iframe. It looks like in the edit options of the widget you can give it some fields possibly but I can't figure out how to access them. Anyone have any experience with this?

0 votes

1 answers

2153 views

ANSWER



Found the answer here: http://doc.nuxeo.com/display/Studio/Understand+Expression+and+Scripting+Languages+Used+in+Nuxeo#UnderstandExpressionandScriptingLanguagesUsedinNuxeo-Widgets%2CXHTMLandContentViews

now my iframe html is:

<iframe src="http://mywebpage.com" docTitle="#{currentDocument.dc.title}"></iframe>
0 votes