In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1100 [In-Portal CMS] Template System bug report always 2011-08-17 04:15 2011-09-19 16:08
alex  
alex  
normal  
closed 5.1.3-RC2  
fixed  
 
none 5.1.3  
https://groups.google.com/d/topic/in-portal-bugs/Y_IgcJQKSRY/discussion
Fixed first stripped of char when "html:some_html_here" is passed instead of a block name for PrintList tag
0
0001100: First char of HTML isn't displayed, when "html:<some_html_here>" is passed instead of block name to any tag
In-Portal uses a block concept to out data from database on a page.
So you basically define a block of HTML somewhere and then pass that block name to a tag, that will use it like in example below:

<inp2:m_DefineElement name="sample_element">
    < li ><inp2:Field name="SomeField"/>< /li >
</inp2:m_DefineElement>

< ul >
    <inp2:l_PrintList render_as="sample_element"/>
< /ul >

This will output all links in a current category using a "sample_element" block. However, there are tags, that require multiple blocks to passed in, e.g. "footer_render_as", "header_render_as" and so on.

If block content is a plain short text without HTML, then can simply use this approach to pass it without creating a new block:

<inp2:l_PrintList render_as="sample_element" footer_render_as="html:it's a footer"/>

So you need to pass "html:any_text_here" instead of a block name. You can also pass "html:" (will result in empty string).


Problem is that first char of passed text will be stripped off.
patch lost_first_char_in_html_as_block_name.patch (970) 2011-08-17 04:15
http://tracker.in-portal.org/file_download.php?file_id=1104&type=bug
Issue History
2011-09-19 16:08 alex Note Added: 0003795
2011-09-19 16:08 alex Status resolved => closed
2011-08-24 02:38 alex Changeset attached 5.1.x r14505
2011-08-24 02:38 alex Note Added: 0003690
2011-08-24 02:38 alex Status reviewed and tested => resolved
2011-08-24 02:38 alex Fixed in Version => 5.1.3
2011-08-24 02:38 alex Resolution open => fixed
2011-08-24 02:38 alex Assigned To !COMMUNITY => alex
2011-08-24 02:24 alex Note Added: 0003687
2011-08-23 17:29 Dmitry Note Added: 0003679
2011-08-23 17:29 Dmitry Status needs testing => reviewed and tested
2011-08-23 11:54 Dmitry Note Added: 0003674
2011-08-23 11:54 Dmitry Target Version Icebox => 5.1.3
2011-08-17 04:17 alex Assigned To => !COMMUNITY
2011-08-17 04:17 alex Developer => alex
2011-08-17 04:17 alex Status active => needs testing
2011-08-17 04:17 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/Y_IgcJQKSRY/discussion
2011-08-17 04:16 alex Description Updated bug_revision_view_page.php?rev_id=802#r802
2011-08-17 04:16 alex Description Updated bug_revision_view_page.php?rev_id=801#r801
2011-08-17 04:15 alex New Issue
2011-08-17 04:15 alex File Added: lost_first_char_in_html_as_block_name.patch
2011-08-17 04:15 alex Change Log Message => Fixed first stripped of char when "html:some_html_here" is passed instead of a block name for PrintList tag

Notes
(0003674)
Dmitry   
2011-08-23 11:54   
Moved to 5.1.3 since simple fix
(0003679)
Dmitry   
2011-08-23 17:29   
Reviewed, please commit.
(0003687)
alex   
2011-08-24 02:24   
That "html:" parameter is really useless, since it doesn't allow any HTML tags to be typed after "html:", while it says it allows that.

TODO:
1. remove this parameter processing completely (2 places)
2. search for any other places, where it's used in TPL files and decide how to change tag implementation code, so there is no need to pass "html:" instead of block names.
(0003690)
alex   
2011-08-24 02:38   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0001100: First char of HTML isn't displayed, when "html:<some_html_here>" is passed instead of block name to any tag
(0003795)
alex   
2011-09-19 16:08   
Closing, since 5.1.3 release has been released.