MarcomCentral (PTI) and FusionPro User Communities

MarcomCentral (PTI) and FusionPro User Communities (http://forums.pti.com/index.php)
-   Graphic Rules (http://forums.pti.com/forumdisplay.php?f=33)
-   -   Return Multiple Graphics in 1 Graphic Box (http://forums.pti.com/showthread.php?t=5001)

traba5058 October 9th, 2017 08:53 AM

Return Multiple Graphics in 1 Graphic Box
 
1 Attachment(s)
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

GreggRusson October 9th, 2017 12:41 PM

Re: Return Multiple Graphics in 1 Graphic Box
 
One idea would be to use a textbox and write a rule using a FPTable object with 1 row and up to 6 columns (one for each logo field that's not empty). Then center the returned table...

Gregg

step October 9th, 2017 02:09 PM

Re: Return Multiple Graphics in 1 Graphic Box
 
You should try returning an inline graphic in a text frame:
Code:

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



All times are GMT -7. The time now is 12:13 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.