<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"><<a href="mailto:managementboy@gmail.com" target="_blank">managementboy@gmail.com</a>></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 "template" 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> <textarea name="description_without_progress" from="basetextarea" depends="!progress_text"></div><div> <area>15,30,890,120</area></div><div> <template>%DESCRIPTION%</template></div>
<div> </textarea></div><div><br></div><div> <textarea name="description_with_progress" from="basetextarea" depends="progress_text"></div><div> <area>15,30,890,36</area></div>
<div> <template>%DESCRIPTION%</template></div><div> </textarea> </div></div><div><br></div></div></blockquote><div><br></div><div style>I'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's one problem however, and currently what you'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't be applied on an object with the name "description_without_progress"...</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>