PEAK XOOPS - un-well-known(?) usage of Smarty modifier (4) in englishin japanese

Archive | RSS |
XOOPS
XOOPS : un-well-known(?) usage of Smarty modifier (4)
Poster : GIJOE on 2006-07-12 05:03:13 (8103 reads)

in englishin japanese
You can use not only php's built-in functions but also functions defined by user.

But you have to know the function should be both ...
A) defined on smarty compiling
B) defined on smarty rendering

At least, functions defined in include/functions.php can be used.

eg) you can use xoops_substr() like this.


<{$news.title|xoops_substr:"0":"20"}>


Though Smarty's default plugin of "truncate" is not compatible for multibyte, xoops_substr() is compatible.

You will be a little closer to "gread customizer" with this tips

0 comments

Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!