In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1197 [In-Portal CMS] Template System feature request N/A 2012-01-31 09:54 2012-07-25 05:31
alex  
alex  
normal  
closed 5.1.3  
fixed  
 
none 5.2.0-B2  
https://groups.google.com/d/topic/in-portal-dev/CVJ7Cn-f8HQ/discussion
Added array support in m_Get tag
1
0001197: Array support in m_Get tag
In-Portal has m_Get tag, that is allows to display data, that was passed from web-browser, like url parameter or form field value right on the template.
This can be easily achieved by <inp2:m_Get name="url_param_name"/> tag.

However, when it comes to multi-dimensional data structures on forms, e.g. input name on a form is like "some_name[sub_key][another_key]", then m_Get tag fails to display this, because PHP converts these keys into arrays, that should be accessed differently.

Here is the patch for square bracket support in m_Get tag.
patch array_support_in_mget_tag_feat.patch (856) 2012-01-31 09:54
http://tracker.in-portal.org/file_download.php?file_id=1499&type=bug
Issue History
2012-07-25 05:31 alex Note Added: 0004983
2012-07-25 05:31 alex Status resolved => closed
2012-01-31 10:07 alex Category Front End => Template System
2012-01-31 09:56 alex Note Added: 0004438
2012-01-31 09:56 alex Status reviewed and tested => resolved
2012-01-31 09:56 alex Fixed in Version => 5.2.0-B2
2012-01-31 09:56 alex Resolution open => fixed
2012-01-31 09:56 alex Assigned To !COMMUNITY => alex
2012-01-31 09:56 alex Changeset attached 5.2.x r15099
2012-01-31 09:55 alex Note Added: 0004437
2012-01-31 09:55 alex Status needs testing => reviewed and tested
2012-01-31 09:55 alex Assigned To => !COMMUNITY
2012-01-31 09:55 alex Developer => alex
2012-01-31 09:55 alex Status active => needs testing
2012-01-31 09:55 alex Reference => https://groups.google.com/d/topic/in-portal-dev/CVJ7Cn-f8HQ/discussion
2012-01-31 09:54 alex File Added: array_support_in_mget_tag_feat.patch
2012-01-31 09:54 alex Change Log Message => Added array support in m_Get tag
2012-01-31 09:54 alex Estimate Points => 1
2012-01-31 09:54 alex New Issue

Notes
(0004437)
alex   
2012-01-31 09:55   
Will test all together later.
(0004438)
alex   
2012-01-31 09:56   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001197: Array support in m_Get tag
(0004983)
alex   
2012-07-25 05:31   
Since 5.2.0 version was released.