Jump to content

Return Multiple Graphics in 1 Graphic Box


traba5058

Recommended Posts

Please help! I'm stuck again.

 

One of our clients has the ability to select up to 6 logos for the footer on a flyer.

The logos need to be centered in the footer, so i can't have multiple image boxes.

 

I need to place all images in 1 image box and have it center aligned.

 

I keep getting This graphic rule must return a Resource type of graphic or no error and no logos populating.

 

I've attached sample data.

 

Thanks so much to anyone that can help!

Traba

SiteOne_flyer_v5.txt

Link to comment
Share on other sites

You should try returning an inline graphic in a text frame:

var result = '';
for (var i = 1; i <= 6; i++) {
 if (!(logo = Field("Logo " + i))) continue;
 result += CreateResource('/path/to/logos/' + logo).content;
}
return result;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...