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!

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:Field name="SomeField"/></li*gt;
    </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:Field name="SomeField"/>

  • </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.



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

    Powered by Mantis Bugtracker