Jump to content

Search the Community

Showing results for tags 'image rule'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome
    • Start Here!
    • News
  • Software-Related Talk
    • Documentation
    • Getting Started
    • The JavaScript Library
    • FusionPro® VDP Creator
    • FusionPro® VDP Producer
    • FusionPro® VDP Server (API)
    • FusionPro® Expression®
    • MarcomCentral®
  • Support
    • Issues, Questions, Etc.
    • Digital Workflow Documents
    • Fonts
  • Off Topic
    • Customer Polls
    • Job Board (Moderated)
    • Reviews, Rants, and General Musings

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Occupation


FusionPro VDP software version


OS


Acrobat Version


Homepage


ICQ


AIM


Yahoo


MSN


Skype


User Title

Found 2 results

  1. Hello All - I recently posted a question about changing font colors when a certain image is selected, and was given this rule as a solution, and it works perfectly. var color = ''; switch (GetFileName(Field("headerImage"))){ case "red.pdf": color = "PANTONE Red 032 C"; break; case "blue.pdf": color = "PANTONE 2945 C"; break; case "gray.pdf": color = "PANTONE 430 C"; break; default: color = "PANTONE 266 C"; } return '<color name="' + color + '">' + ToUpper(Field("dynamicSubOne")) + '</color>'; Since then, there was a request for additional functionality. Now ,in addition to the above, I need to return a unique image as well to a picframe ("logo") that is also associated with the color themes. I've made a number of attempts, but I'm not able to get the actual image to change. Any advice on how to associate a unique pic within the switch case rule? Any help very much appreciated! Matt
  2. Hello Again, I find myself having trouble with some code that I have validated in Fusion Pro VDP's code editor, and as data output on my local computer, not behaving as expected in Marcom. The idea is that a user will select a cover image for a multiple page brochure - out of a gallery style picker - and depending on the specific image they select the background images of the inside pages, inset flap and back cover will populate with images that best compliment the colors in the cover image. Basically letting the user pick the cover and having that determines the style for every other background image in the booklet. My variable to select the cover is applied directly to the graphic frame of the cover, and is functioning correctly in Marcom, but the value of it does not seem to be making it to the rule in the template. The following code is an example of the rule I wrote for the back cover. switch (GetFileName(Field("Cover Image")).toLowerCase()) { case "Sunset_Fade.pdf".toLowerCase(): return Resource("Backer_Red.pdf"); case "Waterfall.pdf".toLowerCase(): return Resource("Backer_Blue.pdf"); case "Starry_Sky.pdf".toLowerCase(): return Resource("Backer_Purple.pdf"); default: return Resource("Backer_Gray.pdf"); } The rule is structured as a graphic switch rule, that I converted to java to try to trouble shoot, but in Marcom it only returns the default value. I got it to work based on a text value input from Marcom, using a different variable as a quick test, but the client wants to be able to see the cover images in a gallery when ordering the brochure, so I cannot alter that part on the product. I'm baffled as to why it doesn't work. Any thoughts on how to accomplish this while in Marcom? Help is much appreciated!
×
×
  • Create New...