share template

alt=
MONEE
@monee
6 days ago
68 posts
how do I change the template used when item is shared to the same template that is used when item is posted. right now when you create item and it's posted to your timeline it uses the item_list.tpl but when you share something it using a different template. I think it's the action_list.tpl and it that doesn't give me much control of because its just says {$item.action_original_html|jrUrlScan_replace_urls}
which only shows the video player with videos.
Now I've been able to change what shows when a group is shared by using jrGroup_item_action_detail.tpl which overwrites orginal template but that doesn't seem to work with other modules
I'm using followme2 profile timeline

so the jrBlog_item_action_detail.tpl works also but the events and the discussions are using jrUrlScan_url_card.tpl which looks like a 404 not found template but I don't know what template it is looking for. so far it looks like audio videos youtube events and disussions don't use the item_action_detail.tpl when an item is shared and I need to fix it so they do
updated by @monee: 12/18/24 01:45:58PM
alt=
MONEE
@monee
4 days ago
68 posts
I figured out the problem here. those modules that are using the jrUrlScan_url_card.tpl don't have a item_action_detail.tpl included in them. So if you want to make a custom template those modules you have to include a item_action_detail.tpl in the module template directory first or it won't work. maybe they will be added in future update but that how i fixed this.
updated by @monee: 12/20/24 07:26:23PM
michael
@michael
3 days ago
7,746 posts
If your skin is over-riding a module template it will be prefixed by that modules name.

To over-ride the jrBlog modules item_action.tpl file copy it to your skin and call it /skins/YOUR SKIN/jrBlog_item_action.tpl. then make changes to it and clear the caches.

--edit--
Turn that tool off after using it, it can screw stuff up on a production site.
which.jpg
which.jpg  •  274KB

template.jpg
template.jpg  •  770KB


updated by @michael: 12/21/24 11:53:11PM
alt=
MONEE
@monee
2 days ago
68 posts
the problem was some module are missing those default templates so if you create the override template it doesn't work without the one in the module being there. I had to add the default templates to the modules that was missing them so my overrides would work
michael
@michael
2 days ago
7,746 posts
If its missing in the module itself then its probably falling back to something else. Most likely the jrAction modules version of it, so if you create an override for that it should help avoid needing to add templates to the modules. The problem with adding templates to the modules is they will not be there if the module is updated.