Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Creating a table in templates or importing a CSV file


Reply


3 Posts   1446 Views

Avatar
redcirce

Community Member, 22 Posts

2 March 2009 at 3:54pm

I am creating a site for a traditional-type auction house. They have sales catalogues that list items for auction at upcoming events and may have more than one of their catalogues online at any one time.

Ideally, I'd like to be able to create some sort of data table into which they can upload a CSV file (or similar) that will populate their sale catalogue. I think I could use CsvBulkLoader for this, but am not sure and I'll need to look into it.

In the interim, is it possible to create a table in a .ss template so the layout for the catalogue is already there for them to type the data into? I've given it a go, but it's not showing up in the template at all.

Thanks in advance.

Avatar
Sam

Administrator, 685 Posts

2 March 2009 at 4:03pm

Can you please post the content of your .ss template?

Avatar
redcirce

Community Member, 22 Posts

2 March 2009 at 4:38pm

Edited: 02/03/2009 4:40pm

Hi Sam. The table shows up in the published site, but not in the admin/editor.

<div class="typography">
   <% if Menu(2) %>
      <% include SideBar %>
      <div id="Content">
   <% end_if %>
      <h2>$Title</h2>
   
      <div class="ramindpageholder">
<div class="ramphoto">$Photo.SetHeight(200)</div>
         <div class="ramindpageline">
         <div class="rambox"><p>Event:</p></div>
         <div class="ramdataindbox"><p>$EventTitle</p></div>
      </div>
      <div class="ramindpageline">
         <div class="rambox"><p>Date:</p></div>
         <div class="ramdataindbox"><p>$EventDate</p></div>
      </div>
      <div class="ramindpageline">
         <div class="rambox"><p>Inspection Date:</p></div>
         <div class="ramdataindbox"><p>$InspectionDate</p></div>   
      </div>
         
      </div><!--ramindpageholder-->
      <table width="500" border="0">
       <tr>
          <td width="200"><p>Pen</p></td>
          <td width="200"><p>Tag</p></td>
          <td width="200"><p>ItemDate</p></td>
          <td width="200"><p>ItemColor</p></td>
          <td width="200"><p>ItemCondition</p></td>
       </tr>
       <tr>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
       </tr>
      </table>

<div class="clear"></div>
   
   <% if Level(2) %>
       <% include BreadCrumbs %>
   <% end_if %>
   
   <% if Menu(2) %>
      </div><!--content-->
   <% end_if %>
   
   
</div><!--typography-->

Thanks!