Go Back   PTI Marketing Technologies User Community > Software-Related Talk > The JavaScript Library > Graphic Rules

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 9th, 2017, 09:53 AM
traba5058 traba5058 is offline
Regular Contributor
 
Join Date: Jan 2012
Location: Atlanta, GA
Posts: 72
Default Return Multiple Graphics in 1 Graphic Box

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
Attached Files
File Type: txt SiteOne_flyer_v5.txt (17.3 KB, 8 views)
Reply With Quote
  #2  
Old October 9th, 2017, 01:41 PM
GreggRusson GreggRusson is offline
Junior Community Member
 
Join Date: May 2011
Location: Seattle
Posts: 33
Default 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
Reply With Quote
  #3  
Old October 9th, 2017, 03:09 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 924
Default 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;
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
Reply

Tags
graphic, multiple

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:19 PM.


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