Anonymous | Login | Signup for a new account | 2023-09-27 13:02 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
View Revisions: Issue #1100 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0001100: First char of HTML isn't displayed, when "html:<some_html_here>" is passed instead of block name to any tag | ||
Revision | 2011-08-17 04:16:38 by alex | ||
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. |
||
Revision | 2011-08-17 04:16:10 by alex | ||
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"> </inp2:m_DefineElement> <inp2:l_PrintList render_as="sample_element"/> 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. |
||
Revision | 2011-08-17 04:15:18 by alex | ||
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"> </inp2:m_DefineElement> <inp2:l_PrintList render_as="sample_element"/> 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. |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |