Categories in CSV export showing "Array"

More
6 years 3 months ago - 6 years 1 month ago #71261 by lomuyeh
I exported some items by clicking CSV button. Every field showing value, but categories showing "Array".

Maybe this needs a little fixing?

Thanks,
Lomu
Last edit: 6 years 1 month ago by ggppdk.

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

More
6 years 3 months ago #71263 by ggppdk
Hello

Explanation:
The parameter exists in all field
-- but the CSV export code is generic,

is meant to export CORE fields (e.g. categories is a 'core' field) that are single value
is meant to export non-composite CUSTOM fields

composite custom fields are fields that each of its values,
-- is an array of properties
e.g. a weblink field or an image field

before these fields can be exported,
--you would need to define / decide, what their "CSV" export will look like

not same but similar for categories field we need to decide,
-- what the export for "categories" will be ?
e.g. it should be the category names , separated by comma?


-- 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
6 years 3 months ago #71265 by lomuyeh
Hi
Yes I think export categories name will be good.
And I think separated by comma is good too. User can modify the csv file by add column name in the first row their selves in excel.

Thanks,
Lomu

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

More
6 years 3 months ago #71267 by ggppdk
Hello

i have commited a fix for both Tags and Categories fields

please install via URL and test in a test site
github.com/FLEXIcontent/flexicontent-cck...e/3.2.1.x-stable.zip

Note you need to go to field's configuration and instead of "Raw values" select "Rendered values"


-- 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
6 years 1 month ago #71969 by lomuyeh
Hi
Now I'm using 3.2.1.12. The category still shows "Array".
Yes I've selected the field configuration both "Raw" and "Rendered". Both are the same, showing "Array".
When I selected "No", the field is not shown. I think the setting is OK.

Thanks,
Lomu

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

More
6 years 1 month ago #72054 by lomuyeh
Hi
Sorry to ask but any update?
Thanks,
Lomu

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.321 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