XF 2.0 xfrm widget template name?

electrogypsy

Well-known member
Just trying to find the name of the template for the XFRM new resources widget. I just want to make a small edit to it... can someone tell me what it is? i can't seem to find the right one in the template list or search.
 
xfrm_widget_new_resources

okay, that's what i thought, but i can't find what i want to edit in there. i'm just trying to add a <br> after the user name, which is easy enough to do in the chrome inspector, but i can't find where in the template to add it. here's a screen shot of what i'm trying to do:

screenshot-squattheplanet.com-2018.07.03-14-31-41.webp
 
Look in the xfrm_resource_list_macros template. Each resource calls that template and a macro in that template. Either the resource or resource_simple macro.
 
Look in the xfrm_resource_list_macros template. Each resource calls that template and a macro in that template. Either the resource or resource_simple macro.

okay, i found it and was able to make it do what i wanted. thanks for the help!

for anyone that's curious i edited the xfrm_resources_list_macros template:

find this:

Code:
<li>{{ $resource.User.username ?: $resource.username }}</li>

add <br /> to end of line:

Code:
<li>{{ $resource.User.username ?: $resource.username }}</li><br />

i also removed the listInline--bullet class from the line above:

original:

Code:
<ul class="listInline listInline--bullet">

edited:

Code:
<ul class="listInline">

to remove the bullet ahead of the 'updated' word:

download (2).webp
 
Back
Top Bottom