"Update temporary item data" required if i unpublish item by changing it state to -2 in database

More
2 years 8 months ago - 2 years 8 months ago #82046 by Natwork
Hi,
i'm working on a script that unpublished item by items id.
For a items id in array, a make a sql request to unpublish this item by setting "state" to -2 in jos_content.

In items list, i can see the item with the trash icon, but i don't need to filter by state to see it. After logout/login again, FC dashboard ask me to " Update temporary item data", and then everyting is back to normal : item is trashed and i need to filter by trashed state to see trashed items.

How can i udpate temporary data at the end of my script ? Or do I need to update any FC table to achieve this without updating temporary datas ?

[Edit] Items with state set to -2 still show in front (unlogged) until i refresh temporary datas
Last edit: 2 years 8 months ago by Natwork.

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

More
2 years 8 months ago #82047 by Natwork
Found that I had to update 'jos_flexicontent_items_tmp' too, now everything works fine.
Is there a better method or class to call to achieve this in a cleaner way?

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

More
2 years 8 months ago #82051 by micker
i think update 2 table in same way

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

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