ν
νλ¦Ώμ μ²μ¬μ§ νμΌμμ λ°λ³΅ λ μ΄μμ/λͺ©λ‘ νλλ₯Ό μ¬μ©νκ³ μΆμ΅λλ€.
μ΅μ
μ΄ μλ μ ν νλκ° μλ
λ° κ·Έμ λ°λΌ νλλ₯Ό νμνκΈ° μν΄ μ¬μ©μκ° μ νν μ νμ νκ°νλ μ‘°κ±΄λΆ νλ.
μ¬μ©μκ° λ€λ₯Έ μ νμ κ΅¬μ± μμλ₯Ό μΆκ°/μ νν μ μλ κΈ΄ κΈ°μ¬μ μ΄κ²μ μ¬μ©νκ³ μΆμ΅λλ€.
μ ν νλμ κ°μ 쑰건μ μ΄λ»κ² μ€μ ν©λκΉ(λ°λ³΅)?
μ½λκ° νμ¬μ κ°μ΄ μ νλ§ νμλκ³ μ‘°κ±΄λ¬Έμ μν₯μ λ―ΈμΉμ§ μμ΅λλ€.
header.field.selection:
type: list
style: vertical
label: Repeater/list with conditional field selection
fields:
.select: # this select sets the boolean for the conditional fields
type: select
size: long
classes: fancy
label: Select the type of field you would like to add
options:
tinymce: Textarea
slideshow: Slideshow
testimonial: Testimonial
video: Video
.tinymce:
type: conditional # if Textarea was selected render the tinymce fields
condition: "header.field.selection.select is same as('tinymce') ? 'true' : 'false'"
fields:
.fieldName:
type: text
label: Tinymce
.slideshow:
type: conditional # if slideshow was selected render the slideshow fields
condition: "header.field.selection.select is same as('slideshow') ? 'true' : 'false'"
fields:
.fieldName2:
type: text
label: Slideshow
.testimonial:
type: conditional # if testimonial was selected render the testimonial fields
condition: "header.field.selection.select is same as('testimonial') ? 'true' : 'false'"
fields:
.fieldName3:
type: text
label: Testimonial
.video:
type: conditional # if video was selected render the video fields
condition: "header.field.selection.select is same as('video') ? 'true' : 'false'"
fields:
.fieldName4:
type: text
label: Video
μ‘°κ±΄λΆ νλλ λ€λ₯Έ νλλ₯Ό κΈ°λ°μΌλ‘ 'λΌμ΄λΈ' μλνλ κ²μ΄ μλλΌ μλΉμ€λ₯Ό λ°μ λ PHP κΈ°λ₯μ μ€ννκ³ κ²°μ μ λ΄λ¦΄ μ μμ΅λλ€. λ€λ₯Έ λͺ¨λ κ²μ μλ°μ€ν¬λ¦½νΈλ₯Ό μ€νν΄μΌ ν©λλ€.
κ°μ¬ν©λλ€.
Wordpressμ κ³ κΈ μ¬μ©μ μ μ νλμ κ°μ 'μ μ°ν μ½ν μΈ νλ'**λ₯Ό λ§λ€ μ μμμ΅λλ€. λΉμ μ μ¬κΈ° μμ μ½λλ₯Ό λ³Ό μ μμ΅λλ€
** νμ νλ(λ μ΄μμ) κ·Έλ£Ήμ μ μνκ³ μ΄λ₯Ό μΆκ°, νΈμ§ λ° μ¬μ λ ¬νμ¬ κ³ λλ‘ λ§μΆ€νλ μ½ν μΈ λ₯Ό λ§λλλ€!
Form νλ¬κ·ΈμΈμμ μ΄μ κ°μ ν΅μ¬ νλλ₯Ό λ³΄κ³ μΆμ΅λλ€ :) PR μλ§λ??
@rhukster
'feature/flexible-form-field' λΈλμΉμ λν pull μμ²μ΄ μ΄λ£¨μ΄μ‘μ΅λλ€.
μν:
λ€μμ λν λμμ΄ νμν©λλ€.
tnx
(μ λ slack μ±λμμ 'genenenenaam'μΌλ‘ μ¬μ© μ€μ λλ€)
@rhukster
'λͺ©λ‘ νλͺ© μ λ ¬'κ³Ό νλ ν νλ¦Ώ 'list.html.twig'μ μ΄λ¦μ λν μ’ μμ±μ΄ μμ΅λκΉ?
λλ ν μ€νΈλ₯Όνκ³ κ·Έκ²μ 보μΈλ€ :
μ΄μ λν λ΅λ³μ΄ μ κΈ°λ₯μ νμ¬ μνμ λν λ¬Έμ λ₯Ό ν΄κ²°ν μ μλ€κ³ μκ°ν©λλ€.