can import simple text field, but can't import checkbox and selectmultiple for example

More
9 years 4 months ago #55318 by woluweb
Hi there,

I am finally discovering FlexiContent after a discussion with Emmanuel @ the last JoomlaDay in France and after a few exchanges with Yannick, who both convinced me of the excellence of the tool :-)

But still I face a very annoying problem, as
- I have been fighting 1/2 day just for trying to solve this alone
- the project for which I must apply this should have all articles imported... byt the end of this w-e

So here is the issue I am facing : I am using the lastest FlexiContent v3 version.
I have tested the importation.
It works great for
- text fields
- text fields with multiple values added
But I can't make it work for
- checkbox (configuration of field being: 1::Yes%% 0::No%% )
- selectmultiple (configuration of field being : film_reel::Cinéma du réel%%film_sf::Science-Fiction%%film_aventure::Aventure%% )

I can't find no example of how to formulate those types of fields in the CSV file (nor on backend of Flexi, nor on this forum, nor in the tutorials)
Let's take the example of the checkbox, how should I write the value in the CSV file :
~~ 1::Yes%%
~~ 1::Yes
~~ 1
~~Yes
...

I have tried all combinations I could think of, but I always get errors of the following kind
Warning: Invalid argument supplied for foreach() in /home/woluweb1/public_html/_demos/_flexi/plugins/flexicontent_fields/checkbox/checkbox.php on line 873

So what am I doing wrong ?
Can you give me a quick example of how to formulate those values in the CSV files ?

Txs a lot !

PS : of course, I also tried things like
~~1%%0
~~Yes%%No

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago - 9 years 4 months ago #55327 by ggppdk
Hello

it sounds like, the new code fieldgrouping

has broken the CSV import of
- checkbox
- checkboximage
- selectmultiple,

if you don't get answer in 2 days please post reminder in the GitHub issue that i have opened:
github.com/FLEXIcontent/flexicontent-cck/issues/232


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 4 months ago by ggppdk.
The following user(s) said Thank You: woluweb

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55328 by woluweb
txs a lot for the quick reaction !
so it was an issue of the importation tool, not of my formating
great :-) I was becoming completely mad ;-)

but still : how am I supposed to write my value in the CSV file ?
Let's take the example of the standard radio button, which has the following format
1::Yes%% 0::No%%

what do I write in the CSV if I want
- one value
- multiple values

Txs a lot !

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55331 by ggppdk
Hello

in the CSV import you should only add the value like this
~~ value ~~

or for multiple values like this:
~~ value1 %% value2 %% value3 ~~

(scroll down to see the example!)

re-adding configuration into the CSV import is rather redudant right ?
please try the above


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55335 by woluweb
OK, so you are confirming what I had put in my very first trial, namely
~~ value ~~
~~ value1 %% value2 %% value3 ~~

So in this case that confirms that there is a bug in the importation.
Here is my file (see the film_jeunes field) :

title ~~ text ~~ film_duree ~~ film_genre ~~ film_jeunes
~~ title 1j ~~ description 1 ~~ 67 ~~ genre a%%genre b ~~ Yes
~~ title 2j ~~ description 2 ~~ 89 ~~ genre d%%genre b ~~ No
~~ title 3j ~~ description 3 ~~ 111 ~~ genre a%%genre b%%genre e ~~ Yes

And when importing, it gives the following error msg :
Warning: Invalid argument supplied for foreach() in /home/woluweb1/public_html/_demos/_flexi/plugins/flexicontent_fields/checkbox/checkbox.php on line 873

I am impatient to see the bug fix :-)
Txs a lot for your follow-up indeed,

Marc

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55400 by woluweb
Hi there !

I have made some more testing about Importation.
Besides the problem above for multiselect & radioboxes, here is an extra issue I have discovered.

Actually, I wanted to import my data *with* my own ID.
This way, if there is any change in the "source database", I can simply delete all my items & reimport them at once, *without SEO side-effect* (because if I simply reimport my items letting FlexiContent reassign them new IDs, I loose my ranking on all items which were already indexed with the ID in the url).

So here is what I tested :
1. I import items from CSV, with ID's 2000 to 2003
2. it works
3. I trash these items + delete them from trash
4. I reimport exactly the same file
5. but there, the import engine is stuck at "0%" (and indeed, if I check afterwards, only the first item was imported, not the next ones)

How to solve this issue ? (or, in the meanwhile, is there a workaround) ?

Txs !
And good work for the coming RV ! :-)

Marc

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.429 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline