Jump to content

thomas.cronqvist

Registered Users - Approved
  • Posts

    6
  • Joined

Converted

  • FusionPro Products
    No

thomas.cronqvist'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. This is exactly why I love this forum! Thanks for the "end <p>" solution. It worked - just needed to adjust height of frame to allow for the extra bottom space. I will look carefully on the simplified script and learn by it. :)
  2. Trying to bottom align content of a text frame. If the text box contain only variables and/or text resources it works fine using the frame controls - but I have a js created table inserted in the frame and that causes issues with vertical alignment. Top and Middle alignment works fine, but Bottom alignment does not work on Desktop or Producer (same result) - The content is moving, just not to the bottom . Is there a way to make the table in the frame to bottom align? Project attached. Any help appreciated!! Testbox_pti_1.zip
  3. Hi ICGroup, I suppose you are going to import the template in DSF, MarcomCentral or some other system - your data is not in place yet but to setup the template you need to define some parameters and you need a sample dataset. The easiest way is to select option 2, Create a new flat file. Define the fields that the user is supposed to fill out in the portal and put some sample data in them like; field: "first name" and value:"Kirsten" and so on for all the parameters you need for your template. When ready, save the flat file in your project folder. Now you are all set to assign the newly created fields to your variable text frames in the variable text editor.
  4. @step, the code below did the trick - ampersands shows correctly in DSF! function NoBreak(s) { return s.replace(/&/g,'&').replace(/ /g, " "); } return NoBreak(TaggedDataField("title")); Thanks for all your support - I hope to be able to re-contribute at some point!
  5. Thanks for your replies.. @Dan, your suggestion has exactly the same result - the "&" input composes to & function NoBreak(s) { return s.replace(/ /g, " ").replace(/ /g, " "); } return NoBreak(TaggedDataField("title")); Both my original function and yours work well in Creator. @tobarstep - I have checked the "Treat returned strings as tagged text" checkbox. If not checked, all no break spaces would show as when composing. I suspect this has to do with how DSF is handing over the text input to FP Server. Would it maybe be possible to convert the entity "&" to a plain text "&" in the script before trying to perform the NoBreak function?
  6. Hi, I have a problem with a piece of code on a business card in DSF/FP9.3. We need to keep a string on one line without wrapping and use the function below. Works fine unless there is a "&" in the input field. "Me And You" works fine but "Me & You" composes to "Me & You" Anyone know how to overcome? function NoBreak(s) { return NormalizeEntities(s).replace(/ /g, " "); } return NoBreak(Field("title"));
×
×
  • Create New...