Problem with HTML template

Posted by Rollbase User on 17-May-2013 13:41

Hi, I'm trying to create an HTML template that will contain table with data I'm using following code:  For some reason I have table split for each record separately.  I would like to see one table with all information. Regards, Roman

All Replies

Posted by Admin on 17-May-2013 14:07

Please move

,

and tags outside of template loop.

Posted by Admin on 17-May-2013 15:31

Roman,



Look at your loop, you have a separate table created for each item.



Pavel means to say move the table and tbody tags outside of the loop.



Regards,

Matt

Posted by Admin on 17-May-2013 22:02

Thank you for your help!

Here is HTML code that actually works:



Posted by Admin on 17-May-2013 23:40

Roman,



You may also remove the and

as that would make the code cleaner and maybe fix the placement of you're

tags.







{!#LOOP_BEGIN...}



...

...




{!#LOOP_END...}







or if you need the tag, you may use:









{!#LOOP_BEGIN...}



...


...




{!#LOOP_END...}









Noticed that you didn't close you're table tag and have two tags and only one tag (no open tag).

Might cause a break on other browsers such as IE.



Hope this helps,

Piscoso, Martin

Rollbase

This thread is closed