Page 1 of 1
userform: required input
Posted: Fri Feb 06, 2009 10:32 am
by onli
I want to bold only these labels of the userform which inputs are set as required in the spamblock-plugin. My idea is to add a css-class to the label if the option is set. Is there a smarty-variable for checking this?
sincerely
Re: userform: required input
Posted: Fri Feb 06, 2009 11:08 am
by garvinhicking
Hi!
I don't think so; you would need to edit the commentform.tpl yourself to add the classes to the fields you marked as required.
Regards,
Garvin
Re: userform: required input
Posted: Fri Feb 06, 2009 6:20 pm
by onli
Thank you garvin.
A pity - I knew I can do this manually, but wanted a dynamic solution
sincerely
Re: userform: required input
Posted: Fri Feb 06, 2009 8:36 pm
by Don Chambers
Garvin - when using dynamic forms, we have this loop:
Code: Select all
{foreach name="field" from=$commentform_dynamicfields item="field"}
which then lets us do this:
Perhaps something comparable could be added to the regular comment form??
Re: userform: required input
Posted: Sat Feb 07, 2009 12:55 pm
by onli
Would be a nice feature. Same with the "Mail won't be shown"-option.
Short explanation: I thought a bit about
improving the comment-area and the ability to react to these options dynamically would give me the opportunity to release a template containing these improvements (or at least let my template react nicely if I change such options in the future).