-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.1.3-RC2
-
Fix Version/s: 5.1.3
-
Component/s: Template System
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixed first stripped of char when "html:some_html_here" is passed instead of a block name for PrintList tag
-
External issue ID:1100
-
Copy Issue Key:
-
Patch Instructions:
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.
- mentioned in
-
Wiki Page Loading...