In-Portal Issue Tracker - In-Portal CMS
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Type:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
1027 |
[In-Portal CMS] Front End |
feature request |
N/A |
2011-03-28 09:56 |
2012-07-25 05:33 |
|
Reporter:
|
alex |
Platform:
|
|
|
Assigned To:
|
alex |
OS:
|
|
|
Priority:
|
normal |
OS Version:
|
|
|
Status:
|
closed |
Product Version:
|
5.1.2-RC1 |
|
Product Build:
|
|
Resolution:
|
fixed |
|
|
ETA:
|
none |
Fixed in Version:
|
5.2.0-B1 |
|
Reference:
|
https://groups.google.com/d/topic/in-portal-bugs/1q2DpkInEyo/discussion |
Change Log Message:
|
Adding OptionValue tag for displaying option title by option id |
Estimate Points:
|
1 |
|
Summary:
|
0001027: Tag, to display given option title |
Description:
|
In-Portal has nice tag called Selected, which allows to check if a particular option inside a field value is present.
However it's missing a tag to display any (of the given field options) option title when only it's ID is known.
I suppose, that we can create such a tag and call it OptionValue.
Along with Selected tag it will allow to manipulate with a particular option of fields, that have many of them.
For example it will allow to display only a particular countries instead of all countries on user registration form. |
Steps To Reproduce:
|
|
Additional Information:
|
Sample usage:
<inp2:m_RenderElement name="inp_single_checkbox" prefix="cf" field="ElementType" value="radio"/>
<inp2:m_RenderElement name="inp_single_option" prefix="cf" field="ElementType" value="radio"/> |
Relationships | related to | 0000427 | closed (5.1.1) | alex | Refactor "Display To Public" functionality |
|
Attached Files:
|
option_value_tag.patch (2,720) 2011-03-28 09:56 http://tracker.in-portal.org/file_download.php?file_id=976&type=bug option_value_tag_520.patch (2,694) 2011-10-26 03:07 http://tracker.in-portal.org/file_download.php?file_id=1272&type=bug |
|
Issue History |
Date Modified |
Username |
Field |
Change |
2012-07-25 05:33 |
alex |
Note Added: 0005070 |
|
2012-07-25 05:33 |
alex |
Status |
resolved => closed |
2011-10-26 03:09 |
alex |
Changeset attached |
5.2.x r14696 |
2011-10-26 03:09 |
alex |
Note Added: 0004096 |
|
2011-10-26 03:09 |
alex |
Status |
reviewed and tested => resolved |
2011-10-26 03:09 |
alex |
Fixed in Version |
=> 5.2.0-B1 |
2011-10-26 03:09 |
alex |
Resolution |
open => fixed |
2011-10-26 03:09 |
alex |
Assigned To |
!COMMUNITY => alex |
2011-10-26 03:07 |
alex |
File Added: option_value_tag_520.patch |
|
2011-10-25 21:51 |
Dmitry |
Note Added: 0004090 |
|
2011-10-25 21:51 |
Dmitry |
Status |
needs testing => reviewed and tested |
2011-10-22 05:40 |
alex |
Estimate Points |
=> 1 |
2011-09-24 04:13 |
alex |
Note Added: 0003891 |
|
2011-09-24 04:13 |
alex |
Status |
needs work => needs testing |
2011-09-23 22:09 |
Dmitry |
Status |
needs testing => needs work |
2011-09-23 22:09 |
Dmitry |
Target Version |
Icebox => 5.2.0 |
2011-09-11 22:13 |
Dmitry |
Note Added: 0003730 |
|
2011-04-04 05:04 |
alex |
Relationship added |
related to 0000427 |
2011-03-28 09:57 |
alex |
Note Added: 0003311 |
|
2011-03-28 09:57 |
alex |
Assigned To |
=> !COMMUNITY |
2011-03-28 09:57 |
alex |
Developer |
=> alex |
2011-03-28 09:57 |
alex |
Status |
active => needs testing |
2011-03-28 09:56 |
alex |
New Issue |
|
2011-03-28 09:56 |
alex |
File Added: option_value_tag.patch |
|
2011-03-28 09:56 |
alex |
Reference |
=> https://groups.google.com/d/topic/in-portal-bugs/1q2DpkInEyo/discussion |
2011-03-28 09:56 |
alex |
Change Log Message |
=> Adding OptionValue tag for displaying option title by option id |
Notes |
|
(0003311)
|
alex
|
2011-03-28 09:57
|
|
Done.
I've also fixed incorrect behavior in Selected tag in cases, when field allowed only one option (of many) to be selected (like dropdown) and that tag always returned 1. |
|
|
(0003730)
|
Dmitry
|
2011-09-11 22:13
|
|
Reminder sent to: alex I need help testing this functionality. |
|
|
(0003891)
|
alex
|
2011-09-24 04:13
|
|
To test this you need:
1. create field/custom field of "text" type
2. specify 2+ options for that field via kOptionsFormatter class
3. then on front-end:
- render "inp_single_checkbox" blocks for each option you've created in 2nd step
- place a hidden field from "inp_edit_checkboxes" block
As a result clicking on checkboxes, produced by "inp_single_checkbox" block would make hidden field value to change the same way, like it is changed, when used along with "inp_edit_checkboxes" block.
Benefit of "inp_single_checkbox" is that, you can specify any options from given field using order you need and can easily place them into target web page design. |
|
|
(0004090)
|
Dmitry
|
2011-10-25 21:51
|
|
Tested good!
Please update to use Public/Private for Function call and commit. |
|
|
(0004096)
|
alex
|
2011-10-26 03:09
|
|
Fix committed to 5.2.x branch. Commit Message:
Fixes 0001027: Tag, to display given option title |
|
|
(0005070)
|
alex
|
2012-07-25 05:33
|
|
Since 5.2.0 version was released. |
|