<div dir="ltr">Hi<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 July 2013 17:27, Elkin Fricke <span dir="ltr">&lt;<a href="mailto:managementboy@gmail.com" target="_blank">managementboy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>I would like to ask for the &quot;template&quot; feature to be added to the notification-ui.</div>
<div><br></div><div>This is what I would like to be able to do:</div><div><br></div><div>

<div>    &lt;textarea name=&quot;description_without_progress&quot; from=&quot;basetextarea&quot; depends=&quot;!progress_text&quot;&gt;</div><div>      &lt;area&gt;15,30,890,120&lt;/area&gt;</div><div>      &lt;template&gt;%DESCRIPTION%&lt;/template&gt;</div>


<div>    &lt;/textarea&gt;</div><div><br></div><div>    &lt;textarea name=&quot;description_with_progress&quot; from=&quot;basetextarea&quot; depends=&quot;progress_text&quot;&gt;</div><div>      &lt;area&gt;15,30,890,36&lt;/area&gt;</div>


<div>      &lt;template&gt;%DESCRIPTION%&lt;/template&gt;</div><div>    &lt;/textarea&gt;  </div></div><div><br></div></div></blockquote><div><br></div><div style>I&#39;ve added support for templates, now the following keywords are available for use in all elements:</div>
<div style>%TITLE%, %IMAGE% (contains the path provided if any), %ORIGIN%, %DECRIPTION%, %EXTRA%, %PROGRESS_TEXT%, %PROGRESS%</div><div style><br></div><div style>%PROGRESS% contains the current progress in percentage (value between 0 and 100).</div>
<div style><br></div><div style>There&#39;s one problem however, and currently what you&#39;re referring is possible. In MythUI, the templates map is applied to a MythUIText object, only if the name of the element is contained in the map.</div>
<div style>e.g the template will be use only of the name of you element is one of those:</div><div style>title, image, origin, description, extra or progress_text</div><div style><br></div><div style>it won&#39;t be applied on an object with the name &quot;description_without_progress&quot;...</div>
<div style>This would require a change to the MythUI core </div><div style><br></div><div style>Jean-Yves</div><div style><br></div><div style> </div></div></div></div>