September 3, 200223 yr i am having a lot of trouble formatting text in cdml i am creating an online newsletter for our clients but with large chunks of text i cannot get it to format correctly. If i set the replacement field in html to preformatted text (as in the format it is in, in filemaker) it keeps all the returns and bullet point and so on, but it does not keep to the width of the page. if there is no carrage return at the end of line it just keeps going and going. is their any way to set a pargraph width. i have tried setting the field to paragraph 1 in html. i then lose the formatting of bullet points and carrage returns in the text and i get one chunk of continuous text (but at the right width). is there any way i can get the joys of having carrage returns in my text with out having my text scroll across three pages please help
September 3, 200223 yr Are you using tables to hold your text? Maybe you can set the width of a table cell to force your text width? Good Luck. Garry
September 4, 200223 yr Or you can use the HTML in text for formatting. We have Word Macro for this. Generally it is changing Word file to text with HTML formatting. We are publishing this way from FM Technical Weekly magazine and all PR stuff from ICT. The text field should use the RAW formatting.
September 4, 200223 yr Author how does the word macro work, and is there any equivelant in filemaker. i could have raw text going in one field and a calculated field to format the text into html this is the best solution i can come up with but i have not a clue how it would work any ideas
September 4, 200223 yr Are you able to set the width by using a table cell; i.e. <td width="60">[FMP-Field: mytext]</td>? Garry
September 5, 200223 yr As Garry suggested - you limit the width with TD -- cell. Macro is changing the Bold for <b> HTML tags and so on. Conversion of one article is around 1-2 seconds in macro and 1-2 minutes of manual tune-up and testing through browser
September 5, 200223 yr Author i have tried to limit my table width which does not work when i have the cdml put in preformatted text, how ever it does when i just use non formatted text but i then lose my carrage returns in the text i have tried substituting the carrage returns in the text in filemaker for "<br>" with a calculation field but then i just get <br> showing in the text on the html help
September 5, 200223 yr Author thank you, that is genius and so simple. that makes it even more genius
September 5, 200223 yr Thank you for the kind words; there are definitely some true geniuses (genii?) on FMForums from whom I have learned much. I'm glad to have helped.
September 5, 200223 yr RE: i have tried substituting the carrage returns in the text in filemaker for "<br>" with a calculation field but then i just get <br> showing in the text on the html <br> will display if you use the RAW. RAW has the advantage to display ANY HTML formatting like tables and various CSS etc. JavaScript will not work with BREAK and CR in field, so we are not using that.
September 11, 200223 yr Sorry for the late chime in... One place the "Break" does not work properly is in a text area within a form. The wrap= seems to work in those instances. <textarea name="Specs" size="6" style="width: 550px; height: 50px; font-size: 11px" wrap="virtual"> LR
Create an account or sign in to comment