<div dir="auto">I don't need the value to be rendered in the HTML, I need to process it in the formatter (in the Java code between <% %>. Any time the resource type is processed via formatter I need to get a url from a field and then process it, not just output it in the HTML using el expressions.<div dir="auto">How can I do that?</div><div dir="auto"><br></div><div dir="auto">Thanks!</div><div dir="auto">Mihai</div></div><div class="gmail_extra"><br><div class="gmail_quote">Pe 8 mar. 2017 4:01 p.m., "Patric Dosch" <<a href="mailto:patric.dosch@virtual-identity.com">patric.dosch@virtual-identity.com</a>> a scris:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div class="m_-3716711548567920395WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">>> I don't know how to read data from the resource type(xml), which I can access using el expression.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">This should help:
<a href="http://documentation.opencms.org/opencms-documentation/content-in-opencms/formatters-and-their-configuration/index.html#4.2" target="_blank">
http://documentation.opencms.<wbr>org/opencms-documentation/<wbr>content-in-opencms/formatters-<wbr>and-their-configuration/index.<wbr>html#4.2</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">So
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">${value.YourFieldName}</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">
 holds the information<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">Regards, Patric<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.<wbr>org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@<wbr>opencms.org</a>]
<b>Im Auftrag von </b>mihai lacusteanu<br>
<b>Gesendet:</b> Dienstag, 7. März 2017 16:49<br>
<b>An:</b> <a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a><br>
<b>Betreff:</b> [opencms-dev] How to list files from a folder in opencms?<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">I need to create a new resource type in opencms which have 1 field. The field is for a target folder.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Every time I select a folder from VFS and save the resource(xml) the formatter will render a the list of files from the specified folder.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">I managed to create a jsp file which will create the list of files needed, but only with the target folder hardcoded. I don't know how to read data from the resource type(xml), which I can access using el expression.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Can you help me?<u></u><u></u></span></p>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
<br>
<br>
<br></blockquote></div></div>