fabravo Posted November 17, 2003 Posted November 17, 2003 I have a database which has a field that is in HTML. If I export it and view it on a browser, it works fine, but if I try to show the field via CDML, it shows all the code rather than processing it as code. I have tried to replace the code (the < >) with a global field that has that code in it, but it doesn't make a difference - it still does not work. I know that I could create a CDML page that has the same properties as the field, but one of the combinded fields is a long field that has returns in it (the final output is for news stories online). Is what I am trying to do possible? If so, how? How have others done this? Thanks in advance for your help! frank
Unable Posted November 17, 2003 Posted November 17, 2003 re: if I try to show the field via CDML Please post your code.
fabravo Posted November 17, 2003 Author Posted November 17, 2003 The FileMaker field looks like this: "<font face=Arial, Geneva, Helvetica, sans-serif><FONT size=-2><B>Published: </B>" & DayName(date_start) & ", " & MonthName(date_start) & " " & Day(date_start) & ", " & Year(date_start) & ", " & Hour(time_start) & ":" & If(Minute(time_start)<10,"0" & Minute(time_start),Minute(time_start)) & If(Hour(time_start)<12," a.m."," p.m.") & "</FONT><p>" & "
Leb i Sol Posted November 17, 2003 Posted November 17, 2003 and u wonder why does the poor DB behind the forum gets slow
Unable Posted November 18, 2003 Posted November 18, 2003 re: The HTML that is produced by my CDML page looks like this: Well, actually I was wondering what the code on your format file was that you were using to cause all of that to be displayed. Specifically, what is the code which you use "try to show the field via CDML". Good one, Leb I Sol.
Garry Claridge Posted November 18, 2003 Posted November 18, 2003 Try this: [FMP-Field:myfield,RAW] All the best. Garry
Unable Posted November 18, 2003 Posted November 18, 2003 Garry I believe the problem with ,raw is that where he has penned <font face= ... what will be displayed will be <font face= ... Ultimately, I believe the need is to first populate the field with HTML code (not that < isn't HTML) as if it were a regular HTML file and then determine the parameter necessary (might be raw, might be format). Don't need to second guess on that however until the field is properly populated.
fabravo Posted November 18, 2003 Author Posted November 18, 2003 But, that's just it, I didn't put the "<" in the database, I put "<". I will try 'raw' in the code. frank
fabravo Posted November 18, 2003 Author Posted November 18, 2003 That worked! Thanks Gary (and everyone)! I edited the previous long post. you can see it at work at The Sequoia Alumni Network 'rings' page Thanks again! frank
Unable Posted November 19, 2003 Posted November 19, 2003 I guess I just <ing misunderstood. I am becoming expert at demonstrating that stupidity can negate artificial intelligence. Glad you got it worked out. Another very useful parameter is ,format, which which you will not find documented in the CDMLRdb (which you should have).
Recommended Posts
This topic is 7745 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now