Hello, everyone,
a question… but is the Smarty template engine still used in SuiteCRM? Because there is not a chapter in the documentation explaining how to use .tpl files
Thanks
Yes it is, and yes there isn’t any docs on it. (Can you write it? )
I refer you to this commit where some text is moved from inside a PHP file into a separate .tpl template. This will show you the basic usage of Smarty templates in SuiteCRM:
https://github.com/salesagility/SuiteCRM/pull/7474/commits/ce06cf4ce00289b3f81dfbc72a82630aa6cca130
The rest (conditions, expressions) you can get from Smarty documentation.
Thanks pgr,
my post was not a criticize but I wanted to understand if it was worth trying to study Smarty or if in view of the new release, which I read will use Angular, will be dismissed Smarty.
Thanks!!!
New modules that use Angular in SuiteCRM 8 won’t use Smarty, but Smarty will still be available, since eradicating it completely from SuiteCRM will take a lot of work.
There will also be a compatibility mode so that users can select to use the old interface (with Smarty) for specific modules.
That’s perfect,
thanks for all the tips B-)