is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

#652 closed enhancement (fixed)

allow use of param ctrls_notto_display without using ctrls_to_display in block.formcontrol template plugin

Reported by: ametaireau Owned by:
Priority: low Milestone: Jelix 1.1 beta 1
Component: jelix:tpl Version: trunk
Severity: trivial Keywords: formcontrol
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


Actually, if we doesn't want to display form controls in a template, using a {formcontrols} block, it's impossible (neither, I don't find how to do) to just specify a control we doesn't want to process, like this:

{formcontrols null, array('controls','we','doesnt','want')}

maybe this patch will be usefull

Attachments (1)

patch.diff (1.7 KB) - added by ametaireau 13 years ago.
diff file

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by ametaireau

diff file

comment:1 Changed 13 years ago by ametaireau

  • review set to review?

comment:2 Changed 13 years ago by laurentj

In jelix 1.1, you can deactivate some controls, with you $form object. The list of controls passed to formcontrols (as first arguments or as second argument you added), should be used only because you would like to display other controls outside this loop. This shouldn't be used to not display some controls.

comment:3 Changed 13 years ago by laurentj

  • Milestone changed from jelix 1.1 to Jelix 1.1 beta 1
  • review changed from review? to review+

comment:4 Changed 13 years ago by bastnic

  • Resolution set to fixed
  • Status changed from new to closed

commited in the trunk. Thans for this very first patch in Jelix.

Note: See TracTickets for help on using tickets.