We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

CSVGrab tag entering title field

Development and Programming

paultz's avatar
paultz
19 posts
16 years ago
paultz's avatar paultz

Moderator’s note: Moved to Plugins.

OK I’m not getting this plugin to work…

I have converted my file from hunting.xls to hunting.csv

So here’s my CSVGrab tag

{exp:csvgrab url="url/hunting.csv"
weblog="4"
title=""
site_id="1"
delimiter="TAB"
encloser="QUOTE"
use="1|2|3|4|5|6"
fields="number|species|fees|area|days|no_species" }

i get the results as from CSVGrab

Checking: number,species,fees,area,days,no_species
Found new entry: number,species,fees,area,days,no_species
Checking: 1,Elephant - 15kg (33Lbs) / 1.5m,"7,500",Selous,21,1
Found new entry: 1,Elephant - 15kg (33Lbs) / 1.5m,"7,500",Selous,21,1
Checking: ,Elephant - 27kg (60 Lbs),"12,000",Selous,21,1
Found new entry: ,Elephant - 27kg (60 Lbs),"12,000",Selous,21,1
Checking: ,Elephant - 32kg (80 Lbs),"20,000",Selous,21,1
Found new entry: ,Elephant - 32kg (80 Lbs),"20,000",Selous,21,1
... to last line New entries: 59

when i want to view the results in the viewer page as

{exp:weblog:entries weblog="hunting_species" limit="60" orderby="desc"}
<table width="100%" border="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFCCCC">{number}</td>
    <td bgcolor="#FF9966">{species}</td>
    <td bgcolor="#00CC66">{fees}</td>
    <td bgcolor="#00CCCC">{area}</td>
    <td bgcolor="#FFFF99">{days}</td>
    <td bgcolor="#FF66CC">{no_species}</td>
  </tr>
</table>
{paginate}
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}</div>
{/paginate}
{/exp:weblog:entries}

so i get the same results as CSVGrab page!…the Problem is that all the entries go into the title field and non to other fields

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.