Jump to content

JoyceKeller

Members
  • Posts

    48
  • Joined

Everything posted by JoyceKeller

  1. That is unfortunate, but makes sense as far as what could be displayed in the RTE. But what about color? Is there a way to tie in the colors attached to the template, and be able to select from those in the RTE? This would solve many issues about the clunkiness of having to select a color for an entire field, and allow the user to select sections of text within the RTE to emphasize with color, not just bold, italic, or underlined. I know we could write some JavaScript to make any bolded, italicized, or underlined text a color as well, but that doesn't work if the user doesn't want all of their bolded, italicized, or underlined text to be the same color. What are your thoughts about this?
  2. A tab stop dictionary style only exists in one PDF at a time. Here are the steps that must be taken to use a style in another PDF: Open a PDF that has the tab stop dictionary style I want to use Open the PDF where I want to apply those tab stops Load the tab style into the new PDF Close the original PDF Save the style again for the new PDF (otherwise, the style will not be saved with the new PDF, and I'm alerted on composition there are no saved tab stop styles) Is there any other way to use a saved tab stop style with more than one PDF without repeating this process each time?
  3. Hi Dan, thanks, but removing the checkmark from "treat returned strings as tagged text" did not result in copyfitting the paragraph. Instead, the tags displayed within the previewed text. I moved the post from "The JavaScript Library > Formatting Text" to "MarcomCentral > Manager Specific Discussion"
  4. I have a text frame that contains multiple fields, one of which contains a text area which will accomodate a maximum of 8 lines of text. Only the text area needs to copyfit (horizontal scale only). I tried using CopyfitLine and multiplying the width of the text frame by the max number of lines of text. Here is the CopyfitLine rule I applied. Frame width is 216 (times 8 lines=1728) return CopyfitLine("", Field("Paragraph1"), "Arial", 10, 1728, 4, true); Works like a dream in Acrobat but fails in the MarcomCentral template Any ideas as to why this failed in MCC and what I need to do to correct it? Thanks in advance. Not sure where to post this, since it is ultimately a MCC issue, but deals with text formatting, so I'll start here...
  5. Is there any way to change the gallery image background color or other means to enable the visual display of a white logo in the gallery?
  6. The only way I was able to get the watermark to work with a graphic was to replace "return Resource("Proof");" with "return FusionProResource("Proof");"
  7. Hi Dan, We upload to MarcomCentral and it makes perfect sense that I need to account for generated tagged markup. I've learned something new about calling TaggedTextFromRaw or TaggedDataField. Other than what you have taught me today, the only other reference I can find for TaggedTextFromRaw in the FusionPro RulesSystemGuide.pdf on page 81 and in the UserGuide on page 140. I'll keep reading, though. Thank you for being generous with your time and knowledge. Your solution is a perfect fit.
  8. This may or may not have something to do with a JavaScript Rule in my text field. As long as I enter text in the RTE without breaks or other formatting, the result returns expected results: As soon as I enter a line break and refresh the preview, the following is displayed: Does anyone know why this happens so I can fix it? The rule in my text field is this: [color=seagreen]//code credit: Dan Korn[/color] [color=seagreen]//first sentence color is replaced[/color] [color=blue]var[/color] [color=black]s = [color=dimgray]TaggedTextFromRaw[/color]([color=dimgray]Field[/color]([color=#8b0000]"maintxt"[/color]));[/color] [color=blue]return[/color] [color=black]s.replace([color=magenta]/([^\.\?\!]+.)/[/color],[color=olive]'<color name="purple">$&</color>'[/color]);[/color] see 12797 about making the first sentence of body text change color
  9. thanks for y'all's help. And Step... happy 30th anniversary to your company I was getting hung up on a notation to represent the matched substring, and not paying enough attention to the substring itself. Thanks Dan, also for the bit of regex guidance. I've bookmarked the links as well. Now I have another problem after uploading the template to MCC and try to use the Rich Text Editor... it works until I add a line break... but I will post that in the MCC Forum.
  10. I figured out most of my answer. But instead of changing the color of the first sentence, I change the color of the body text after the first sentence, found by looking for the first instance in the body text of a ".", "!", or "?". The only problem I am having now is the punctuation which ends the first sentence disappears. Is anybody out there good with regex? return TaggedTextFromRaw(Field("maintxt")).replace(/([.!?]|<p[^>]*>)(\s| |<br\s*\/?>)([^\.])*/,'<color name="Black-66">');
  11. Nope, that's not it. I pasted the wrong code. I was working with a thread from OLEOOO who had a similar situation at this link. Here is the code I meant to copy and paste: return TaggedTextFromRaw(Field("body")).replace(/([.!?]|<p[^>]*>)(\s| |<br\s*\/?>)*/,'<color name="CHS-4014">????</color>'); sorry about that
  12. I need to change text color within body text, specifically, need the first sentence of body text to be a different color. Using regular expression to find first sentence. return TaggedTextFromRaw(Field("body text")).replace(/(\&lt\(\S+)(\&gt\;)/g, '<color name="purple">????</color>'); I don't know what to write between the color tags (represented by question marks). The code validates, and shows (in the validation window) the first sentence separated from the rest of the paragraph by the color tag, but I don't know where to take it from here. Should end up looking something like this: The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus.
  13. I see how to add stroke with Advanced Text Effects, but how do I create a rule to add stroke to only a single line in the FP text frame?
  14. I would do this: In FusionPro, assign the same graphic field to each graphic frame being used in the document. Then there is only one graphic field in the form to upload to, and all graphic frames assigned with that graphic field will be populated with the single uploaded image. Does this help?
  15. I need to give credit where it is due.... Jeff Stehman helped me with this. It was Jeff that said, "Basically the issue occurred because the fields were referenced in a rule and weren’t directly associated to the frame. Since the number of copyholes and the dimensions can vary depending on how many images you want to display, when you upload image it defaults to 1" x 1". Essentially the system is saying it doesn't know how big the copyhole is so it just uses 1" x 1" as a default value since it has to display something." So, thanks Jeff, as always
  16. Basically the issue occurred because the fields were referenced in a rule and weren’t directly associated to the frame. Since the number of copyholes and the dimensions can vary depending on how many images you want to display, when you upload image it defaults to 1" x 1". Essentially the system is saying it doesn't know how big the copyhole is so it just uses 1" x 1" as a default value since it has to display something. I ended up using conditional visibility when setting up the form in the MC Manager, instead of using rules in FusionPro. That took care of it. I hope this is helpful to you.
  17. Hi - there are no default numbers when you click the pencil icon. I can change the name of the color to include a number, like 01-Black, 02-PANTONE 185, etc. But I would have to change all the names, then change my iForm Dynamic Pricing, each time I added a color if I wanted to put them in a different order.
  18. In other libraries, that is true. In the color section, however, that is not an option:
  19. Okay - the default order is not alpha-numeric. The order of colors seems to be as they are added. It seems easy enough to remove all the colors, then add them in the order I want them to appear. The local Black always appears at the bottom, though.
  20. Hi, I want to use a spot color Black created in FusionPro along with other spot colors. I thought I had removed all traces of CMYK black from my FusionPro template before uploading, but it still appears in my upload. It must be some sort of default, even though I can remove it from my named colors. Where is it coming from, can I remove it? The only way I have found to deal with the extra Black color is to create Cascading Drop-Down On Selection Change UI Rules. However, this seems to cause Dynamic Pricing issues. Any suggestions?
  21. Hi, we haven't found any insurance added, but have had great success with configuring UPS shipping. We don't use the "Test Shipping" feature, but test products in the store (since that is what your customer is going to be using) and compare what we see in the store to what we find on the UPS site. Make sure you are accounting for carton weights and costs you may have entered. Also do some manual addition for the quantity of item weights. Your discrepancy may lie in those areas. Our MarcomCentral Stores calculate accurately and to the penny with UPS "street" rates calculated on the UPS web site. I hope this helps you.
  22. Does anyone know how to change the order the colors are listed in the color library? I'd like to be able to set the order of colors in the dropdown when using Format Font Color. The default order is alpha-numeric, so it would be easy enough to name colors with numbers, but is there any other way?
  23. Well, I thought perhaps the switch rule might not be agreeable, so I used CreateResource instead, but I still got the 1 x 1 minimum size for the uploads. var kidsPic = CreateResource(Field("KidsPhoto")); if (kidsPic.exists) { return kidsPic; } else { return Resource("KidsCartoon.png"); }
  24. I'm sure it has something to do with the rule I have associated with the graphic. The FusionPro composes correctly, but when uploaded to MCC and previewed, one graphic that should upload a min size of 3.66 x 2.09 at 100 dpi and the other graphic that should upload a min size of 4.74 x 3.16 at 100dpi BOTH display in preview as requiring a min size of 1 x 1 at 100 dpi. Has anyone else expereinced this "default" 1" x 1" issue? The rule is posted below. Basically, if a user does not upload a photo, a graphic will fill the space. switch (Field("FamilyFunPhoto")) { case "": return Resource("FamilyCartoon.jpg"); case Field("FamilyFunPhoto"): return Resource(Field("FamilyFunPhoto")); default: return Resource("FamilyCartoon.jpg"); }
  25. Oh Dan, you are an angel! Thank you for the spoonfeeding.... sometimes things are not as complicated as they seem.
×
×
  • Create New...