Skip to main content
Level 2
September 17, 2024
Beantwortet

Multifield in Context aware configuration

  • September 17, 2024
  • 1 Antwort
  • 813 Ansichten

Can we create arrays of textarea in Ca configuration?

@Property(label = "Enter the Page Path", description = "Page Path", property = {
"widgetType=textarea",
"textareaRows=10"
})
String[] pagePaths();

 I have used this code but I am getting multifield but textarea is not coming. Instead textfield is coming.
Any idea how to get textarea with multifield?

 

 

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von arunpatidar

Hi @vanitana 
According to the official doc https://wcm.io/caconfig/editor/usage.html , It should be correct. You can raise a defect at https://github.com/wcm-io/io.wcm.caconfig.editor/issues 

 

 If you want to use multifield for page path then you can also try

@Property(label = "Page", description = "Page Path.", property = {
    "widgetType=pathbrowser",
    "pathbrowserRootPath=/content"
})
String[] paths();

 

1 Antwort

arunpatidar
Community Advisor
Community Advisor
September 17, 2024

Hi @vanitana 
According to the official doc https://wcm.io/caconfig/editor/usage.html , It should be correct. You can raise a defect at https://github.com/wcm-io/io.wcm.caconfig.editor/issues 

 

 If you want to use multifield for page path then you can also try

@Property(label = "Page", description = "Page Path.", property = {
    "widgetType=pathbrowser",
    "pathbrowserRootPath=/content"
})
String[] paths();

 

Arun Patidar