Exported it from Excel and than searched and replaced a lot of stuff which I couldn’t in Excel.
Quite. But Dreamweaver?
Can I add some headers into the csv or doesn’t it work like that? I know litte about this stuff.
I don’t think it works like that, no. The characters actually need to be converted, I think.
Sue: I have a new version of CSVGrab (& Feedgrab) that obeys the Multiple Site Manager settings - I’ll hopefully release it very soon once tested. DEA: it does not respect the parent category setting at the moment, but it is on my to do list…
Ah, thanks. Any idea of when you’d be doing that part?
I’ve succesfully imported more than 3,000 entries using the following code:
{exp:csvgrab url="http://www.domain.com/grab/memberlist-OG-25-04-2008.csv"
site_id="4"
weblog="26"
title="2"
delimiter="TAB"
encloser="QUOTE"
use="1|8|3|4|5|6|7"
fields="member-number|member-type|MAddress1|MAddress2|MAddress3|MAddress4|MSubRegion" }
}
However when I go to view entries in a template I get the following:
Bob SMITH {member-number} {member-type} {MAddress1} {MAddress2} {MAddress3} {MAddress4} {MSubRegion}
None of my custom fields seem to be rendering. I have checked all associations and groups and they are correct. If I manually enter data then the entry displays correctly:
test name 10010 Member test test test test test
The template code i am using is:
{exp:weblog:entries weblog="{my_weblog}" limit="100"}
<div class="entry">
<h2>{title}</h2>
{member-number}
{member-type}
{MAddress1}
{MAddress2}
{MAddress3}
{MAddress4}
{MSubRegion}
</div>
{/exp:weblog:entries}
Any ideas on how to fix this greatly appreciated.
Nardog, the plugin is not site aware. There isn’t any code in the current version of the plugin to actually set the right site_id.
Edit one of these entries in the back end to use site_id = 4 instead of site_id = 1 and see if it fixes that particular one.
Disclaimer: Unless Andrew modified the plugin in the last few days..
Hi Sue,
Thanks for replying. I understood from Andrew’s site that site_id= does work.
Step 5: Set up the import template and plugin Create a new template called go and add the call to the plugin: {exp:csvgrab url=”http://ee.bnb-dev.co.uk/grab/golf.csv” delimiter=”,” encloser=”QUOTE” site_id=”2” weblog=”4” category_group=”2” title=”2” category_field=”3” use=”7|8|9|10|11” fields=”golf_addr|golf_city|golf_state|golf_zip|golf_phone” unique=”golf_phone” }
In my case the import worked fine but the problem is with the display of the custom fields. When I check a random entry in the CP edit tab all the fields are populated correctly. Yet when I view that entry through the template the custom fields do not display although they are present in the entry.
Hi Sue,
That is all I have in the template and I have tried hard coding the the weblog field name. What’s wierd is that the content is all there in the CP yet the template does not pick up the custom fields unless the entry was manually entered rather than imported with csvgrab.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.