Smarty If statements [Resolved]

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
theyapps
Forum Members
Forum Members
Posts: 12
Joined: Sat Jul 12, 2008 7:57 pm

Smarty If statements [Resolved]

Post by theyapps »

Is it possible to use smarty to test if a file exist?

Essencially I want to be able to use smarty to test if a image exists. Display it if it does. Don't display it if it don't.

I have read through documentation and can't find anything related to this.

CMS Vers: 1.3.1
Last edited by theyapps on Sat Jul 19, 2008 5:32 am, edited 1 time in total.
cyberman

Re: Smarty If statements

Post by cyberman »

Smarty is only a template engine. A file_exists() should be better placed in a userdefined tag ...
Last edited by cyberman on Sat Jul 19, 2008 1:28 am, edited 1 time in total.
theyapps
Forum Members
Forum Members
Posts: 12
Joined: Sat Jul 12, 2008 7:57 pm

Re: Smarty If statements

Post by theyapps »

Awesome I never noticed the user defined tags area! Thank you a lot! Props to you as the most helpful and polite user on these forums so far. I won't say I've been here long but you defenatly are very helpful! Thank you again!
Post Reply

Return to “Developers Discussion”