Oh yes .... :-)
I had to implement a search engine on a customer's site. Never done anything like it before.
From the time it took me to read Ben Forta's chapter on searching, to having a search engine AND scheduled indexer up and running; about two hours. I don't even want to think about how...
Mmmm .. that didn't work, but it gave me an idea for a fix.
I just set a variable
<cfset base="#CGI.SERVER_NAME#:#CGI.SERVER_PORT#/site">
Then I set a html base ref in the template.
<cfoutput><base href="#base#"></cfoutput>
Bit of a hack, but it seems to work OK ....
Ok.
The site is arranged like this
[root]
Application.cfm
documentview.cfm
[images]
[model]
test.cfm
[templates]
template.cfm
The template is basically just putting the HTML around some content
<cfif thisTag.executionMode is "end">
<html>
<head>...
Hopefully the last question for a while ... :-)
Okay. I'm using a cfm file as a kind of layout template, which I call from another CFM file.
<cfset test= "test page"/>
<cfmodule template="templates/template.cfm">
<cfoutput>Hello! #test#</cfoutput>
</cfmodule>
Which works OK. But here's the...
Well, I typed in the code again to get hold an example for you, and it worked!
I must've had some kind of syntax error in my first attempt; the error message threw me though.
Thanks for your help.
Hi there.
I have this query, which I'm going to use for a Group output.
<cfquery name="allContents" datasource="#request.DSN#">
SELECT contentType.id,
contentType.typeOfContent,
contentType.orderOfType,
contentType.active,
contentType.showHeading,
content.id,
content.title...
Hi there.
Flushed with success after my first CF website went live; I'm going to have a crack at another one.
Now I'm looking at adopting a MVC approach (which, until I read Ben Forta's book, I didn't realise was possible).
I'm going to have a controller page (like documentController.cfm)...
I love cold fusion but its got some bugginess that had I known about before I started builing my latest applications, I would have tried another language."
What kind of bugs?
Hi there! Sorry I didn't your message a bit earlier, but I think the next release of CF will have what you're looking for:
http://www.macromedia.com/software/coldfusion/blackstone/#sys_ad
"With ColdFusion MX, you can already deploy ColdFusion as a Java archive (EAR or WAR file) and then...
>> Unless the design folk are just being annoying because they want to be, its quite doable... <<
I couldn't possibly comment on the reasoning behind the designers .... :-/
I like the three box option, but we also have a thirdp party widget that allows for easy date entry; it needs a single...
Yes, making the date look like EU, was not too tricky, the problem was getting ColdFusion to recognise EU formats when processing the date for the database. If CF sees
08/10/2004
Then it assumes that this is 10th of August, when I really wanted it to be 8th of October. However, when it sees...
Aah! So it is something to do with the way ColdFusion handles the dates .... very strange. I guess it's a legacy thing.
Thanks for the help, can't use the three text box solution unfortunately (the design folk won't hear of it), but at least I know I'm looking at a CF quirk rather than a bug in...
Hi there ... :-)
I have a form which has a field for entering a date. Now the date has to be in European format, but I can't figure out how to tell ColdFusion that the date is European when I submit the form to the database.
I'm using CFINSERT/CFUPDATE, and as far as I can tell, ColdFusion...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.