touch UI dialog with Object Array ? | Community
Skip to main content
Level 3
September 20, 2017
Solved

touch UI dialog with Object Array ?

  • September 20, 2017
  • 5 replies
  • 1872 views

Hello Community

I have a question about touch UI Dialog.

I am try to make a field that contain text and url ( or id in the page ). It can be populated depend on what the author wants.

I found String [] type but If I use the string [] type, text and url won't be together. So it can give mismatch result.

If there were Object [] or similar to that, I think I can do like

     Object []

          - String : text

          - String : url

Use case can be listed link.

Do you know how to make the Dialog ?

Thank you for the help!

Ryu

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

I would use a MF in a Touch UI where an author can enter a String and URL value for each section that want to add.

Each MF would contain:

- String : text

- String : url

As shown here - a MF can contain many text fields.

5 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
September 20, 2017

I would use a MF in a Touch UI where an author can enter a String and URL value for each section that want to add.

Each MF would contain:

- String : text

- String : url

As shown here - a MF can contain many text fields.

smacdonald2008
Level 10
September 20, 2017

Then you can read the data fields on the backend of the component and place them into a collection object.

Level 3
September 20, 2017

Thanks you, smacdonald2008​!

I was google around a bit and found ACS-common package tho

Do I need to install the ACS-common to use Multifield or it comes with granite-ui ?

Thanks!

smacdonald2008
Level 10
September 20, 2017

See this article - it will teach you how to build and work with MF:

Scott's Digital Community: Creating an AEM HTML Template Language 6.3 component that uses a Multifield

Level 3
September 20, 2017

Thank you!