• Hi,

    very smart plugin!

    I tried to use “class=anything” in the cft-template in a field with “multiple=true”.

    Looking on the source-code of the edit-page, it seems that only the first <input> gets the class, but not the following input-fields.
    How could I format the other input-fields?

    Wouldn′t it be better to include the class in <dl> instead of <input>, because then it is easy to format all tags which are included in the dl-tag, like dt, span, dd, label and input?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bhenselmann

    (@bhenselmann)

    after some more research I found out, that the problem is only in a set of checkbox-fields, but not in radio-fields, it has nothing to do with “multiple=true”

    I fixed the class attribute for checkboxes in the lateset version 1.3.6. At present, multiple = true for checkboxes is not supported. I would like to add it in the future release. Thanks.

    Thread Starter bhenselmann

    (@bhenselmann)

    Thank YOU! for coding and helping!

    I think, I have not understood the use of ‘multiple = true’ properly.

    You can input any number of custom fields with the same keyname if you use multiple = true. After saving the post, a new field will be shown. If you use multipleButton = true, you can add input fields without saving the post by use of JavaScript. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom Field Template] problems with cft-key “class” in multiple-fields’ is closed to new replies.