Ticket #652 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

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

Reported by: ametaireau Assigned to:
Priority: low Milestone: Jelix 1.1 beta 1
Component: jelix:tpl Version: trunk
Severity: trivial Keywords: formcontrol
Cc: Php version:
Review: review+ Hosting Provider:
Documentation needed: 0 Blocking:

Description

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

patch.diff (1.7 kB) - added by ametaireau on 07/23/08 11:18:30.
diff file

Change History

07/23/08 11:18:30 changed by ametaireau

  • attachment patch.diff added.

diff file

07/23/08 11:26:45 changed by ametaireau

  • review set to review?.

07/23/08 14:04:36 changed 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.

07/23/08 14:08:25 changed by laurentj

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

07/24/08 08:51:31 changed by bastnic

  • status changed from new to closed.
  • resolution set to fixed.

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

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed