Re: CreateFormStart
Posted: Thu Oct 16, 2008 4:09 pm
И в чем запара? Открой function.contact_form.php и посмотри как оно работает.
Content management as it is meant to be
https://forum.cmsmadesimple.org/
ZYV wrote: А вот так пробовал?
{cms_module module='Feedback' fio='$fld_23'}
Array ( [module] => Feedback [fio] => $fld_23 [action] => default )
{capture assign='imagelink'}{/capture}{cms_selflink page="about" text="$imagelink"}
Цитата из справки к форм буилдеруPassing Default Values to Forms
Calguy added a nice feature, which is that you can pass default field values to your form via the module tag. This allows you to have the same form in multiple places, but with different default values. It may not work for more exotic field types, but for fields that have a single value, you can specify like:
{cms_module module='FormBuilder' form='my_form' value_FIELDNAME='default_value'}
This will set the field with FIELDNAME to 'default_value'.
This can be problematic, as sometimes field names are unweildy or contain characters that don't work well with Smarty. So there is an alternative like this:
{cms_module module='FormBuilder' form='my_form' value_fldNUMBER='default_value'}
That uses field NUMBER, where NUMBER is the internal FormBuilder field id. You might wonder how you know what that id is. Simply go into the FormBuilder configuration tab, and check "Show Field IDs"