Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 8 matches
Smarty Forum Index
Author Message
  Topic: Suppressing smarty errors: 'Notice: Undefined index'
tpr

Replies: 11
Views: 18435

PostForum: General   Posted: Thu Jul 16, 2009 5:38 am   Subject: Suppressing smarty errors: 'Notice: Undefined index'
you could also do this

{$tpl.id|default}
  Topic: Adding While loops to Smarty
tpr

Replies: 17
Views: 62411

PostForum: Tips and Tricks   Posted: Mon Mar 19, 2007 7:48 pm   Subject: Adding While loops to Smarty
I wouldn't beat yourself up too bad over it as you were not the only one. I came here today looking for the same thing basically.

I have a template that I needed to draw X number of controls on ...
  Topic: SmartyValidate - Test for file upload
tpr

Replies: 1
Views: 7527

PostForum: Add-ons   Posted: Sun Apr 02, 2006 10:17 am   Subject: SmartyValidate - Test for file upload
well i came up with something but would still like to know if SV will do this without the workaround below






SmartyValidate::register_validator('vimg','img','notEmpty'); ...
  Topic: SmartyValidate - Test for file upload
tpr

Replies: 1
Views: 7527

PostForum: Add-ons   Posted: Sun Apr 02, 2006 9:50 am   Subject: SmartyValidate - Test for file upload
is there a way with SmartyValidate to test if a file was uploaded regardless of type or size. I need to require the user to upload a file and need to display an error if they dont.
  Topic: SmartyValidate 2.7 released
tpr

Replies: 49
Views: 292696

PostForum: Add-ons   Posted: Sat Apr 01, 2006 7:05 am   Subject: SmartyValidate 2.7 released
I came up with a better solution for my suggesting.


<div style="display:{$error|default:none}">
<tr>
<td>&</td>
<td class=" ...
  Topic: SmartyValidate 2.7 released
tpr

Replies: 49
Views: 292696

PostForum: Add-ons   Posted: Sat Apr 01, 2006 7:03 am   Subject: SmartyValidate 2.7 released
see below
  Topic: SmartyValidate 2.7 released
tpr

Replies: 49
Views: 292696

PostForum: Add-ons   Posted: Sat Apr 01, 2006 6:37 am   Subject: SmartyValidate 2.7 released
this is great! I love what you can do with smarty.

a cool feature would be the ability to specify a class that gets used if an error occurs.

something like

{validate id="fname" class=" ...
  Topic: SmartyPaginate - change pagenr and style
tpr

Replies: 6
Views: 14940

PostForum: Plugins   Posted: Mon Mar 27, 2006 2:41 am   Subject: SmartyPaginate - change pagenr and style
In your template do this.

{paginate_middle format="page"}
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP