Jump to content

DWilliams

Registered Users - Approved
  • Posts

    8
  • Joined

Converted

  • Location
    St. Louis, MO

Converted

  • Occupation
    Graphic Designer

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    9.2.31

Converted

  • OS
    Mac OS X 10.8.5

DWilliams's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter Rare

Recent Badges

10

Reputation

  1. Thank you both so much, this answer worked! Logically, I can't see how the resource return being outside the switch rule should have an effect on the return value other than being able to build the file name returned from a variable? I think what I needed was the line ensuring the input matched my options while converting the input value to a string before heading into the switch. I haven't tested the theory yet, but I might when I'm less pressed for time. This also marks the first coding use I have had for a regular expression outside of an academic setting. Yay..?
  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!
  3. Thank you both very much for answering my question. This seems like an opportunity for a use case request to update VDP with a handy feature…
  4. Hello Again, I am setting up some presentation fliers for a client, and one section requires presenter/speaker head shots and biographies. The client has designed them to wrap the text around the speaker's photo and to have 0.1875" of padding on just the right side and bottom of the image. Fusion Pro is wrapping the text around the image, but the text touches the image box. It took me a while to even find the text wrap setting at all, and I can find no place to change the behavior of the text wrap in my Fusion Pro documentation. Is there a way to define the precise padding (space around the image) when using the text wrap tool? I have included a mock up image of what I am attempting to do and what Fusion Pro is generating: http://www.rboweb.com/WASHU/IMGS/EXAMPLES/textwrapquestion.jpg I know for a fact that the client will not redesign this layout to accommodate the software, so I have to figure out a way to create the desired layout. Thanks!
  5. @Dan Korn So the following code…totally worked. I can in no way explain why; but now my event times are all displaying correctly. I can also not explain why the second rule continues to work without modification. Thank you for alerting me to the TaggedTextFromRaw function for this instance. if (Field("Event1_title") != "" && Field("Event2_title") != "") return Field("Event1_title") + ' ' + Field("Event1_time") + ' ' + Field("Event1_ap") + TaggedTextFromRaw(" | ") + Field("Event2_title") + ' ' + Field("Event2_time") + ' ' + Field("Event2_ap"); else if (Field("Event1_title") != "" && Field("Event2_title") == "") return Field("Event1_title") + ' ' + Field("Event1_time") + ' ' + Field("Event1_ap"); else if (Field("Event1_title") == "" && Field("Event2_title") != "") return Field("Event2_title") + ' ' + Field("Event2_time") + ' ' + Field("Event2_ap"); else return '';
  6. @Dan Korn Unfortunately my manager has informed me that the nondisclosure agreement with our client will prevent me from uploading their templates for your review. I have a theory I'm willing to test if you can confirm that the TaggedTextFromRaw function behaves like the HTML <pre> tag? Maybe I can stick it in where I'm appending my string of ' | ' in my original code.
  7. @ Dan Korn Thanks for your fast response, my rules are already set to "treat returned strings as tagged text". The only issue I am having with my existing code is that the double spaces are not correct in output. I am attempting to understand your code suggestion but it looks like it will return a line without my variables for time and am/pm designation. I am unfamiliar with the TaggedDataField function and do not know what arguments are allowed. If I used your code as provided my MC jpg sample would read: Sing Along | Snacks Is there a way to use the TaggedTextFromRaw a more expanded code that gives me the correct formatting of multiple appended variable fields?
  8. Hello, I am new and jumping in head first per usual. I am working on an invite for a client and that will allow them to have multiple sub events (reception, dinner, lecture, movie, etc.) under the date of the main event on the invitation. They are required to enter one and at maximum allowed to have four. The sub events are broken in a 1 | 2 & 3 | 4 format. Format Example: Event 1 00:00 p.m. | Event 2 00:00 p.m. Event 3 00:00 p.m. | Event 4 00:00 p.m. *note two spaces on either side of pipeline (|) FusionPro Rules if (Field("Event1_title") != "" && Field("Event2_title") != "") return Field("Event1_title") + ' ' + Field("Event1_time") + ' ' + Field("Event1_ap") + ' ' + ' | ' + ' ' + Field("Event2_title") + ' ' + Field("Event2_time") + ' ' + Field("Event2_ap"); else if (Field("Event1_title") != "" && Field("Event2_title") == "") return Field("Event1_title") + ' ' + Field("Event1_time") + ' ' + Field("Event1_ap"); else if (Field("Event1_title") == "" && Field("Event2_title") != "") return Field("Event2_title") + ' ' + Field("Event2_time") + ' ' + Field("Event2_ap"); else return ''; if (Field("Event3_title") != "" && Field("Event4_title") != "") return Field("Event3_title") + ' ' + Field("Event3_time") + ' ' + Field("Event3_ap") + ' ' + ' | ' + ' ' + Field("Event4_title") + ' ' + Field("Event4_time") + ' ' + Field("Event4_ap"); else if (Field("Event3_title") != "" && Field("Event4_title") == "") return Field("Event3_title") + ' ' + Field("Event3_time") + ' ' + Field("Event3_ap"); else if (Field("Event3_title") == "" && Field("Event4_title") != "") return Field("Event4_title") + ' ' + Field("Event4_time") + ' ' + Field("Event4_ap"); else return ''; Text Generated out of MarcomCentral Portal when I test my template: http://www.rboweb.com/WASHU/IMGS/EXAMPLES/example.jpg It works and I'm not receiving any errors, but it's loosing my double spacing on either side of my pipeline in just the first rule only on MC and I can't figure out why. Validating the code in FP gives me the correct output and the second rule is formatting correctly. You can see that I have already attempting appending the second space separately to see if that fixed it. Any thoughts?
×
×
  • Create New...