completed Update Action Data

nate
@nate
8 years ago
917 posts
When an item from any module is deleted the jrActions items related to that item should be deleted.

For that matter, they should be updated when the media is finally created or if the user updates the item. This would make them a lot more useful.

Clients tell me "no one uses the timeline", so I added media to the timeline, but if the media gets deleted the timeline becomes filled with errors.

I tried writing a listener in a skin but listeners didn't seem to work in skins. I don't wanna have to bundle a module.
updated by @nate: 08/31/16 08:31:53AM
nate
@nate
8 years ago
917 posts
I was thinking all that may be needed is for jrActions list to check if the item still exists. I can live without being updated.
michael
@michael
8 years ago
7,748 posts
makes sense. Thanks.
michael
@michael
8 years ago
7,748 posts
Its added as an option in the next version of the jrAction module. Its not the default option, the default is the way it works now, but if you would like to delete timeline entries when the item that created them is deleted there is now a "Delete With Item" option in the GLOBAL CONFIG tab.

ACP -> MODULES -> PROFILES -> TIMELINE -> GLOBAL CONFIG -> Delete with item
Quote:
Check this option to delete the activity timeline entry along with the item when the item is deleted.
nate
@nate
8 years ago
917 posts
Cool. That's awesome. I spent today going through 9 demo sites deleting actions. So thanks for adding that. I won't have to do that again.
michael
@michael
8 years ago
7,748 posts
Yeah it timed well with something else I was working on. The youtube module got a sync-with-channel option that syncs a profiles youtube videos with their channels and adds a timeline entry. Sometimes a video that exists in the youtube channel is inappropriate for the profile, so having this there is real useful. Delete the video and the timeline entry goes too. Good suggestion, makes managing the site simpler.
brian
@brian
8 years ago
10,148 posts
This has been added to the latest Timeline module. It is turned OFF by default.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags