XF 1.5 Get file by name only


Well-known member
Hello all,

If you want to get a file by name only, regardless of extension, is there a way to do this in XF templates?

Looking for something similar to using the * in mySql

For example, something like this...

style="background: url('../path/to/folder/filename.*')"

Thank you :)


XenForo developer
Staff member
Do you mean have it read an arbitrary file? There's no option to do this in templates.