While I'm pretty familiar with Fusebox, I don't have the time on this
project to do a complete conversion. 

I've heard conflicting things on using components for layout. In my
layout.cfc I'm holding common elements. Each page has it's own particular
content which is just HTML on a CFM.

-- 
Scott Stewart
ColdFusion Developer
 
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)

-----Original Message-----
From: Dominic Watson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 01, 2008 1:22 PM
To: CF-Talk
Subject: Re: CSS page calls and image calls from a CFC

>
> When I call the css template in the href of the link tag, is it relative
> to
> the location of index.cfm or layout.cfc?


The css path with be relative to the template that is being hit by the url
(index.cfm) as paths in the html are read and translated by the browser (?).

A side note: as a general rule, you should avoid using components for output
(though what you are doing will work) and use them for logic and data
handling only. A great way to use components in a structured way is through
an MVC (model view controller) framework and I'd encourage you to have a
look at some:

http://www.model-glue.com/coldfusion.cfm (my favourite)
http://www.fusebox.org/
http://www.mach-ii.com/

Also, take a look at ColdSpring, a great way of organising your components'
relationships with each other and much more goodiness:

http://www.coldspringframework.org/

I realise that's not what you asked but I thought it might be useful ;)

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304593
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to