In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001027 [In-Portal CMS] Front End feature request N/A 2011-03-28 09:56 2012-07-25 05:33
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0-B1
Status closed Product Version 5.1.2-RC1 Target Version 5.2.0
Time EstimateNo estimate
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.
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"/>
Tags No tags attached.
Change Log Message Adding OptionValue tag for displaying option title by option id
Estimate Points 1
Attached Files patch file icon option_value_tag.patch [^] (2,720 bytes) 2011-03-28 09:56 [Show Content]
patch file icon option_value_tag_520.patch [^] (2,694 bytes) 2011-10-26 03:07 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0000427closed (5.1.1)alex Refactor "Display To Public" functionality 

-  Notes
User avatar (0003311)
alex (manager)
2011-03-28 09:57


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.
User avatar (0003730)
Dmitry (manager)
2011-09-11 22:13

Reminder sent to: alex

I need help testing this functionality.
User avatar (0003891)
alex (manager)
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.
User avatar (0004090)
Dmitry (manager)
2011-10-25 21:51

Tested good!

Please update to use Public/Private for Function call and commit.
User avatar (0004096)
alex (manager)
2011-10-26 03:09

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001027: Tag, to display given option title
User avatar (0005070)
alex (manager)
2012-07-25 05:33

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14696
Timestamp: 2011-10-26 03:09:34
Author: alex
Details ] Diff ]
Fixes 0001027: Tag, to display given option title
mod - /in-portal/branches/5.2.x/core/admin_templates/incs/form_blocks.tpl Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/db/db_tag_processor.php Diff ] File ]

- 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 =>
2011-03-28 09:56 alex Change Log Message => Adding OptionValue tag for displaying option title by option id

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker