A
A
Alexander Loginov-Solonitsyn2015-11-17 22:50:07
Adobe
Alexander Loginov-Solonitsyn, 2015-11-17 22:50:07

Is there any way to loop through the parameters array in Adobe Muse?

Good day to all. I am writing a simple gallery widget based on jquery. I insert pictures through the parameter . Tell me how you can go through all the type parameters in a loop. For example, we have the following parameters:

<file name="img1" label="Выберите изображение:" filterLabel="Images" fileTypes="*.jpg;*.jpeg;*.png;*.gif" fileRequiredForOutput="true"/>
  <file name="img2" label="Выберите изображение:" filterLabel="Images" fileTypes="*.jpg;*.jpeg;*.png;*.gif" fileRequiredForOutput="true"/>
  <file name="img3" label="Выберите изображение:" filterLabel="Images" fileTypes="*.jpg;*.jpeg;*.png;*.gif" fileRequiredForOutput="true"/>

We have the following basic markup:
<div id="parenr"></div>
Next, for example, I want to fill divs with images in a loop
for (var i = 1; i <= 3; i++) {
  $('#parent').append('<div>{param_img'+i+'}</div>');
}

This approach doesn't work. The documentation does not mention this. Maybe someone has come across this. Muse has recently started to master.
ps. sorry for the many letters)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question