knussear Posted November 3, 2001 Posted November 3, 2001 Hello I have a database that is published online with cdml. I would like to have the ability for the user to click a link (created by the text in a field) that downloads a local file. For example... To download a pdf document in html I would make a url- http://addresstoserver/file.pdf How can I insert this information into a FM field, such that when cdml renders the page I have an active link? I tried entering this <a href="http://addresstoserver/file.pdf">download pdf</a> as my text in a field and tried the different text display modes [FMP-Field:Fieldname,raw] [FMP-Field:Fieldname,url] [FMP-Field:Fieldname,html] [FMP-Field:Fieldname,blank] Raw came the closest, but IE gives an error when attempting to download. Any suggestions? Thanks [ November 03, 2001: Message edited by: knussear ]
knussear Posted November 4, 2001 Author Posted November 4, 2001 I figured it out. In case anyone else needs to do something like this the html/cdml looks like this <a href="http://serveraddress/[FMP-Field:Filename]">[FMP-Field:Filename</a> I was trying to contain the whole link in the text field. How silly I was
Vaughan Posted November 4, 2001 Posted November 4, 2001 You should be able to put the whole link in a text field (with raw encoding) as well. Dunno why it didn't work.
Recommended Posts
This topic is 8756 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