https://twill.io logo
Custom dashboard activity
# ❓questions
j
When using "activity" => true, in twill.php for the dashboard it seems only items are added to activity that are being added/update by a user. I'm adding messages from a from to a module using a controller and i don't seem to get them to show up in the activity. Any idea how i can fix this?
i
if you're using the module repository to create those messages they would register an activity. if you dont want to refactor you can register an activity yourself with
activity()->performedOn($item)->log('created');
j
Thx
Is there a way remove the preview img from the activity?
i
hmm you'll need to override the dashboard vue component or just add a small css hack to your dashboard view