Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#62 - Wrong parse value in component
Attached to Project:
Open Power Template
Opened by nediam (nediam) - Sunday, 08 March 2009, 13:41 GMT-8
Last edited by Zyx (Zyx) - Saturday, 04 April 2009, 00:50 GMT-8
Opened by nediam (nediam) - Sunday, 08 March 2009, 13:41 GMT-8
Last edited by Zyx (Zyx) - Saturday, 04 April 2009, 00:50 GMT-8
|
DetailsI have snippet like:
<opt:root> <opt:snippet name="componentLayout"> <com:div> <p><label parse:for="$sys.component.id">{$sys.component.title}</label></p> <opt:display /> <opt:onEvent name="error"> <p>An error occured: {$errorMessage}</p> </opt:onEvent> </com:div> </opt:snippet> </opt:root> and I'm useing it like that: <opt:Input template="componentLayout" name="login" datasource="$fieldData" /> <opt:Input template="componentLayout" name="password" datasource="$fieldData" /> it should return: <div> <p><label for="login_id"></label></p> <input name="login" id="login_id" type="text" /> </div> <div> <p><label for="password_id"></label></p> <input name="password" id="password_id" type="text" /> </div> but it dosn't :( it returns wrong id in second "for" attribute: <div> <p><label for="login_id"></label></p> <input name="login" id="login_id" type="text" /> </div> <div> <p><label for="login_id"></label></p> <input name="password" id="password_id" type="text" /> </div> |
This task depends upon
Closed by Zyx (Zyx)
Saturday, 04 April 2009, 00:50 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 72
Saturday, 04 April 2009, 00:50 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 72
Just in file test_components_2.tpl replace:
<p>{$opt.component.title}: <opt:display /></p>
to:
<p><span parse:title="$opt.component.title">{$opt.component.title}:</span> <opt:display /></p>
it returns:
<p><span title="List 1">List 1:</span> <select title="List 1" ...
<p><span title="List 1">List 2:</span> <select title="List 2"...