Jump to content

rjohns

Registered Users - Approved
  • Posts

    14
  • Joined

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    9.3.26

Converted

  • OS
    Mac OS 10.11.3

Converted

  • Acrobat Version
    Acrobat X (10)

rjohns's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. I found a solution ... Thought I would post it in case others had the same question: I used .replace() to insert a bullet and tab after every <p> tag. var s = Field("Special Interests").replace(/<p>/g,"<p>•<t>");
  2. Dan: I don't know how I've gotten this far without knowing that FusionPro picks up the InDesign styles! This is awesome – it should make life much easier now. :-D I've got a related question ... I created a function using the methodology that Ste recommended: function Header(str) { return '<p style="CV Section" leading=40 leadafter=200><color name="PANTONE 361 C">' + str + '</color></p>'; } Now, I need to swap the color based on the value of another field. The way I approached this was defining a variable with a complex if statement and adding that variable to the function. But I'm getting an undefined error. if (Field("Color") == "Plum") var accentColor = '<color name="PANTONE 5195 C">'; else if (Field("Color") == "Orange") var accentColor = '<color name="PANTONE 153 C">'; else if (Field("Color") == "Red") var accentColor = '<color name="PANTONE 704 C">'; else if (Field("Color") == "Green") var accentColor = '<color name="PANTONE 361 C">'; else var accentColor = '<color name="PANTONE 5425 C">'; function Header(str) { return '<p style="CV Section" leading=40 leadafter=200>' + accentColor + str + '</color></p>'; } Is this the way I should be going about it? Or is there an easier way? Thanks again for the help!
  3. I'm working on a template and need to create a list of bullets. I know I could do this with multiple fields (bullet 1, bullet 2, bullet 3, etc.), but I'm hoping there is a way I can do it using one field with multi-line text entry. It'd be way more user-friendly for my users to be able to cut and paste an entire list from the source content into one field instead of having to cut and paste into multiple fields. Ideally, a user would be able to type a list into the field using paragraph breaks (pressing "Enter") to distinguish between the bullets. Here's that I'm doing right now: return '•<t>' + Field("Bullets"); But that's only displaying a bullet at the beginning of the entire field. I need to insert the bullet and tab at the beginning of every line. Any help would be greatly appreciated – thanks!
  4. This is exactly what I was looking for –*thank you!!
  5. Is there a way to set global paragraph and character styles in FusionPro? I know that I can set paragraph attributes inline within my rules, but it’d be great it I could define these globally and then call them when needed. I looked through the available documentation and searched the community forum and couldn’t find an answer. I’m assuming you can since there’s a way since I’ve seen <p style=“Head1”> in the documentation, but I don’t see information about how to do that globally. Any information would be appreciated – thank you!
  6. I completely forgot that I could break it up like that! Thanks so much for your quick response!
  7. I'd like to change the font color of some text using the value of a field. The field value is the same as the color named defined in FusionPro. Basically, I'm trying to shortcut having to write a couple of lines of code for each color. I've approached it thinking I could write a text rule: return '<span color=Field("Inside Text Color")>' + Field("Optional Top Message"); But it doesn't seem to be picking up the value of the Inside Text Color field. So, I tried this: var textColor = Field("Inside Text Color"); return '<span color=textColor>' + Field("Optional Top Message"); But that didn't work either. Any other ideas? Thanks!
  8. You know, it didn't even occur to me to approach it from that direction. Your suggestion worked perfectly. Thanks for the speedy response and great solution!
  9. I'm working on a project and I need some help. Basically, I want to insert a logo and text on the last page of a document. Here's more specific info: File Setup: Page 1 - body; cover Page 2 - body; first inside page Page 3 - overflow I'm inserting a 3 page PDF starting on page 2, so I'll end up with a 4 page document after composition. With this setup, pages 3 and 4 of the final composed document are generated from page 3 of the Acrobat file. I need to place a graphic and some text on page 4 of the composed document (the last page). I've approached it thinking: "If the current page is page 4, insert this text." After reading through a lot of threads, I couldn't find anything that really addressed what I'm trying to achieve. I tried adapting some of it, but didn't have much luck. I've tried using the following to insert the text: if (FusionPro.Composition.currentPageNumber == 4) return "1.1416.000000"; else return ""; But that didn't work. The text showed up on both overflow pages (pages 3 and 4). I also tried a variation like this: if (FusionPro.Composition.currentPageNumber == FusionPro.Composition.totalPages) return "1.1416.000000"; else return ""; And I got the same result. I must be missing something ... But what? Any help is greatly appreciated – thanks!
  10. Thanks for your help, Dan and Ste! I ended up using the text rule –*it works beautifully. It never crossed my mind to handle it that way. Thanks again!
  11. I'd like to change the text color for all of the text in a specific text frame based on the value of a field. For example, if the field value contains the word "color," change the text color for all the text in the text frame named "Address" to Pantone 424 C. I've tried searching the existing posts, but I haven't found one addressing this specific topic. The best I've come up with so far is: if (Field("SizeColor").indexOf("color") > -1) { return FindTextFrame("Address").content("<color name=\"PANTONE 424 C\">") } return ""; Any help would be much appreciated – thanks!
  12. I'm finding it a bit cumbersome to tweak the CSS using the Custom Copy page with MarcomCentral Manager. There's so much back and forth, having to copy/paste, scroll, click Submit, refresh the page I'm tweaking, etc. ... I'm wondering if it is possible to load an external style sheet instead of including all of the CSS with the different Custom Copy fields. Anyone know if this is possible? I've tried adding this text to the Footer Copy: <link rel="stylesheet" type="text/css" href="http://files.marcomcentral.app.pti.com/promedica/Store%20Custom%20Copy%20Files/test.css" type="text/css"> Any way to do something like this? Or am I destined to a life of lots of copying/pasting and scrolling? *Disclaimer: I'm not a front-end developer ... I'm a graphic designer pinch-hitting so I can customize the UI for my company's new MarcomCentral storefront. Thanks!
  13. I'm working on customizing the look and feel of our new MarcomCentral store. I need help with center aligning the item name and "add to cart" button under the item preview image in grid view. I know how to center align the item name – the problem seems to be that the table width for the item name is only 167px wide, while the width for the item image is 187px wide. Because of this difference, things obviously don't center correctly. Second, how do I control the horizontal alignment of the "Add to Cart," "Customize," etc. buttons? Any help would be greatly appreciated! Becka
×
×
  • Create New...