1. 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

Discussion in 'XenForo Questions and Support' started by RichardKYA, Oct 6, 2015.

  1. RichardKYA

    RichardKYA 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 :)
  2. Mike

    Mike XenForo Developer Staff Member

    Do you mean have it read an arbitrary file? There's no option to do this in templates.
  3. RichardKYA

    RichardKYA Well-Known Member

    OK, thanks Mike

Share This Page