Custom Template

Permalink Browser Info Environment
I am looking to find out how to create a template that will return the data in a tabular format with column headings at the top.

I have looked around but really not sure if this is possible. Any suggestions is greatly appreciated.

Thanks

Type: Discussion
Status: New
jmonroe
View Replies:
FatTony1952 replied on at Permalink Reply
FatTony1952
In the Header area of the template, put something like this

<table >
  <tr>
    <td width="125"><h2>Item 1</h2></td>
    <td width="150"><h2>Item 2</h2></td>
    <td width="150"><h2>Item 3</h2></td>
    <td width="150"><h2>Item 4</h2></td>
  </tr>
</table>


Then, in the Content area, something like this

<table>
  <tr>
      <td><field name="Item 1 Placeholder here" /></td>
      <td><field name="Item 2 Placeholder here" /></td>
      <td><field name="Item 3 Placeholder here" /></td>
      <td><field name="Item 4 Placeholder here" /></td>
  </tr>
</table>


You will probably have to set widths on everything to get it to lineup, but that should work.
jgarcia replied on at Permalink Reply
jgarcia
Yeah, you could do something like Tony mentioned, or if you want it all to be in the same table, do something like this:

Header:
<table>
    <tr>
        <td>Field 1</td>
        <td>Field 2</td>
        <td>Field 3</td>
    </tr>


Content:
<tr>
    <td><field name="Item 1 Placeholder here" /></td>
    <td><field name="Item 2 Placeholder here" /></td>
    <td><field name="Item 3 Placeholder here" /></td>
    <td><field name="Item 4 Placeholder here" /></td>
</tr>


Footer:
</table>

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.