developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org 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

Last modified 12 years ago

#601 closed new feature (fixed)

jelix tpl plugin: add {ifctrlname ... } block plugin

Reported by: bibo Owned by: bibo
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:plugins Version: trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

This block plugin must be used inside {form} or {formcontrols} block. It is useful to finely control the markup generated for jforms without repeating {formcontrols} block for example.

Example of use :

            {formcontrols}
               <div class="form-item{ifctrlname 'mycontrol'} anotherclass" id="mycontrolId{/ifctrlname}">
               {ctrl_label}{ctrl_control}
               </div>
            {/formcontrols}

Attachments (1)

jelix-trunk-#601.patch (1.6 KB) - added by bibo 13 years ago.
{ifctrlname} plugin

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by bibo

{ifctrlname} plugin

comment:1 Changed 13 years ago by bibo

  • review set to review?

usage : {ifctrlname 'name1','name2',...}

comment:2 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.1 beta 1
  • Owner set to bibo
  • review changed from review? to review+
  • Severity changed from normal to minor
  • Summary changed from jelix tpl plugin: add {fictrlname ... } block plugin to jelix tpl plugin: add {ifctrlname ... } block plugin

It's seems ok, but just replace the name by ifctrl, and don't forget to update CREDITS and the build/manifest/jelix-lib.mn file.

comment:3 Changed 13 years ago by bibo

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

OK. changed the name to ifctrl and commited.

comment:4 Changed 12 years ago by bibo

  • Documentation needed unset
Note: See TracTickets for help on using tickets.