![]() |
Check to see if file exists in template?
Is it possible to see if a file exists in a template? If so, how is it done?
|
You can use something like
HTML Code:
<if condition="file_exists('path/to/file')"> |
You cannot use the function file_exists() in a template conditional unless you first add it to the template safe functions list.
|
Ah I thought you could use any PHP code :p
May be better just to use a plugin then. |
All times are GMT. The time now is 12:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|