Categories in CSV export showing "Array"

More
6 months 3 weeks ago - 4 months 3 weeks 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: 4 months 3 weeks ago by ggppdk.

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

More
6 months 3 weeks 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 review. Thanks!

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

More
6 months 3 weeks 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 months 3 weeks 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
https://github.com/FLEXIcontent/flexicontent-cck/archive/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 review. Thanks!

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

More
5 months 1 day 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
4 months 3 weeks ago #72054 by lomuyeh
Hi
Sorry to ask but any update?
Thanks,
Lomu

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

More
4 months 3 weeks ago - 4 months 3 weeks ago #72079 by ggppdk
Hello

yes i see the issue,
the new option (use "rendered" values) works for

- select(multiple), radio(image), checkbox(image)

but not for fields: categories, tags
i am making a fix


-- 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 review. Thanks!
Last edit: 4 months 3 weeks ago by ggppdk.

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

More
4 months 3 weeks ago #72080 by ggppdk
Hello

i have made a fix for categories and tags field,

You can use install via URL in Joomla extensions manager in a testing website to test the fix
https://github.com/FLEXIcontent/flexicontent-cck/archive/3.2.1.x-stable.zip


The thing is that i see that we use comma to seperate 'rendered values'for categories / tags field

but comma maybe contained in category titles , tag titles

i think we need a new option , probably at component parameters
This will not be a B/C break as the default will continue to be 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 review. Thanks!

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

More
4 months 3 weeks ago #72088 by lomuyeh
Hi
Thanks for your effort. It works well.

Maybe one more option. Now the categories seems not follow any order.
Can it be set to order by depth?

Thanks,
Lomu

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.