View Full Version : Simple Smarty Question
KartKorner
05-17-2006, 06:33 AM
Does anyone know if there is a mod available to allow for multiple body styles? i.e. if viewing this page this style, that page that style, ect... Just trying not to reinvent the wheel :) Thanks.
KartKorner
05-17-2006, 07:37 AM
Does anyone also know the smary code for is not null? Or would I need to use php for this? Thanks for the help :)
Content visible to registered users only.
you can call a differet tpl based on a value.
(i did this a while back just test test. so i know 100% that it works)
Content visible to registered users only.
wasn't smarty patched to not allow passing of null params?
i guess you can always check for:
ne ''
or
ne 'NULL'
from php->smarty
KartKorner
05-17-2006, 10:46 AM
I appreciate it Anon. I got a cpl hrs of sleep, coffee is a brewing so I will play around with the code a bit to get he body styles functionality to work. In regards to the other it is simply because of a hiding feature I am enabling. I found one flaw and it had to when a page was viewed that had no catID so I thought I would combine the effort and validate that the current cat was not null and the total subcats eq 0.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.