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
0001100 [In-Portal CMS] Template System bug report always 2011-08-17 04:15 2011-09-19 16:08
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.1.3
Status closed Product Version 5.1.3-RC2 Target Version 5.1.3
Time EstimateNo estimate
Summary 0001100: First char of HTML isn't displayed, when "html:<some_html_here>" is passed instead of block name to any tag
Description 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.
Additional Information
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-bugs/Y_IgcJQKSRY/discussion
Change Log Message Fixed first stripped of char when "html:some_html_here" is passed instead of a block name for PrintList tag
Estimate Points 0
Attached Files patch file icon lost_first_char_in_html_as_block_name.patch [^] (970 bytes) 2011-08-17 04:15 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0003674)
Dmitry (manager)
2011-08-23 11:54

Moved to 5.1.3 since simple fix
User avatar (0003679)
Dmitry (manager)
2011-08-23 17:29

Reviewed, please commit.
User avatar (0003687)
alex (manager)
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.
User avatar (0003690)
alex (manager)
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
User avatar (0003795)
alex (manager)
2011-09-19 16:08

Closing, since 5.1.3 release has been released.

- Related Changesets
In-Portal CMS: 5.1.x r14505
Timestamp: 2011-08-24 02:38:27
Author: alex
Details ] Diff ]
Fixes 0001100: First char of HTML isn't displayed, when "html:<some_html_here>" is passed instead of block name to any tag
mod - /in-portal/branches/5.1.x/core/kernel/application.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/nparser/nparser.php Diff ] File ]

- Issue History
Date Modified Username Field Change
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 View Revisions
2011-08-17 04:16 alex Description Updated View Revisions
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



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

Powered by Mantis Bugtracker