• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Get file by name only

RichardKYA

Well-known member
#1
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 :)
 

Mike

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