Importation de flux xml dans Flexi

More
12 years 4 months ago #41333 by seabird
Ok I see, Thanks.
I just modified helper.php (module/mod_flexicontent/helper.php )of "Universal Content Module"
I comment (line 911):
Code:
/*if ( !$isflexi_itemview ) { return; // current view is not item view ... , nothing to display }*/

and I add (line 921):
Code:
$cid = JRequest::getInt('cid');
above
Code:
$cid = $cid ? $cid : $curitem->catid;

because in the view category I want items that are filtered by a particular field. I do not have all the items in the category view because "Locked Filter values"

Regards

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

More
12 years 4 months ago #41335 by ggppdk
Hello

i am not sure of what you describe but there is also the "initial filter values" parameter:
to set values for initial display of a category instead of locked values that cannot be changed

-- note for "locked filter values" if you choose to display the locked filter we need to put an overlay or something to prevent user from changing it ,
1 because it will have no effect thus it will be confusing
2. but on the other had you want to show the current (locked) value of the filter

Regards


-- 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
12 years 4 months ago #41339 by seabird
I modified helper.php of "Universal Content Module" because for example there is 2 type (type1 and type 2) in a category and I want this:


And with this modification, its Ok
Regards

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

More
12 years 4 months ago #41352 by seabird
Hello,

I test import csv in v2.1.1. I configure and click "prepare import task".
For example, I have message: "Imported task prepared.
File has 10 records (content items) and 10 columns (fields)
"
And nothing, no message...

How launch the importation ?
[Edit]: I see, its a problem of encoding utf8, its work fine now, but 2000 items is to big(don't work). I cut csv en 3 part


Thanks,

Eric

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

More
12 years 4 months ago #41371 by seabird
Hello,

I Have a problem. The csv import without problem.
But, if logout and re-login. There is Post installation and if I click "initial authorization", there is error message.


And I can not do anything.

Regards

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

More
12 years 4 months ago #41372 by ggppdk
Hello,

something records invalid state or a DB table is corrupt or ...

please go to component settings and inside the first TAB "options", enable the parameter "Debug initial permissions"

Regards


-- 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
12 years 4 months ago #41373 by seabird
Hello,

I put the old bdd backup and I test only with 10 items in csv. I have still the same problem.
When I debug "Debug initial permissions", I have:
Code:
Deleted actions: Array ( ) Added actions: Array ( ) Component DB Rule Count 46 Component File Rule Count 46 bad assets for items: Array ( [0] => stdClass Object ( [id] => 23462 ) ) PASSED comp_section:1 && category_section:1 && article_section:0 && field_section:1 && type_section:1

Regards

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

More
12 years 4 months ago #41374 by ggppdk
Hello

you have a single item for which the asset cannot be created:

with id : 23462

backup db and trying deleting it via phpmyadmin from

__content

and from

__flexicontent_items_ext


-- 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
12 years 4 months ago #41376 by seabird
Hello,

Must deleting:
_content
_flexicontent_fields_item_relations
_flexicontent_items_ext
_flexicontent_cats_item_relations

I still test 10 items, and some item failed yet
example, Here 3 items failed:
Code:
Failed item no: 1. titled as: 'Autriche, au fil des quatre saisons, ciné-conférence' : Imported item no: 2. titled as: 'Bourg-en-Bresse - Denain, Pro B, basket-ball' Imported item no: 3. titled as: 'Bourg-en-Bresse - Poitiers, Pro B, basket-ball' Imported item no: 4. titled as: 'Bourg-en-Bresse - Saint-Vallier, Pro B, basket-ball' Imported item no: 5. titled as: 'Bourg-en-Bresse - Châlons-Reims, Pro B, basket-ball' Imported item no: 6. titled as: 'Bourg-en-Bresse - Hyères-Toulon, Pro B, basket-ball' Imported item no: 7. titled as: 'Bourg-en-Bresse - Rouen, Pro B, basket-ball' Failed item no: 8. titled as: 'Bourg-en-Bresse - Fos-sur-Mer, Pro B, basket-ball' : Failed item no: 9. titled as: 'Bourg-en-Bresse - Aix-Maurienne, Pro B, basket-ball' : Imported item no: 10. titled as: 'Bourg-en-Bresse - Evreux, Pro B, basket-ball'

I don't understand.


To solve the problem. After import csv, I decided to do sql query that delete items with an asset_id = '0'

With a csv ( 620 items) and Items per import step:2 there is 542 Failed ????
After deleting items with asset_id=0. I try to create a item manually on backend and I have message: Error content storage.
I repeat this three times before it works ??? Strange

May be that the problem comes from my sql query that do reinitialization of the auto-increment (id) of content after delete items ?
Code:
"ALTER TABLE #_content AUTO_INCREMENT = $id_max";

Regards

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

More
12 years 4 months ago #41383 by ggppdk
Hello

are you importing with custom item ID (__content table id) ?


-- 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.

Moderators: vistamediajoomlacornerggppdk
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
Save