Re: Headers and Footers
On 10/4/06, Andrew Scott [EMAIL PROTECTED] wrote: Denny, I was not that favourable to any framework because it depended on the job, however after now doing a lot of dojo work I have opted to combine that with MG:U and with the abilities of coldspring, reactor and ModelGlue and dojo tied together I have got an awesome arsenal there. Oooo la la! Exactly the combination I've been mulling over. It's a switch in thinking for me though- it's like doing stuff in Flash, which I didn't get into. Well, maybe a little animation, but never an application. :-/ OpenLaszlo holds some interest for me as well. Have you checked it out? I think the main reason I like the frameworks is that I'm pretty social... and open source collaboration rocks the free world. But there is good and bad to non-conformity, (re: Snow Crash and viruses ;) and since I'm in control of some projects, and need help, yet can't get anyone long-term- only short term- I gotta make things easier to pick up and run with. I had to be a little different though, so I looked at Tartan and MG over fusebox. And I need challenges. =] Reactor I get, ColdSpring I'm getting... heady stuff, injection. Not sure about XML config files yet, but I'm giving them time... BTW thanks for the support of the POC, its not perfect as it will not do images, other than text, but hey if one wanted to get the header content and then change that on the fly it is achievable too. I dig that kind of stuff. Maybe too much. ;-) I like your comment on taking 4 hours to come up with something that should take an hour, but that's life as a developer because we always change our code until we are semi happy anyway, so at the end you can say well that would have normaly taken me an hour, but I tried to do this and it didn't work so I threw it out... LOL Hehehe! Yeah, I do that too. :-) I was thinking more along the lines of getting a mish-mash of data, poorly formatted (if at all), and being expected to dynamicalize it, or add it to an existing system. Even though they may swear the process will change, it will be a one time deal, or some other well-meaning sentiment, (and sometimes it's close)- I'll write up a parser. Many times it's taken longer to write the parser than it would have taken to enter the data by hand, but more often than not, it pays off in the end. Sometimes I really do waste time trying too hard to save time. Eh... I'm aiming at doing that less, now that I got a kiddo on the way and all. Using open source stuff is actually helping me focus a little more... it's not so boring when you're doing it with other people, ya know? It feels really good to actually contribute, and speaking of, I guess I better get back to getting up to speed with some stuff. I can't contribute if I don't know it, and the best way to know it is to apply (and then teach ;) it. Right after I finish reading my mail... =P Nice typing with you, Andrew! Same for you, CF-Talk! =] ps- I've joined cf-community, so I'll try to keep the more personal public stuff there (although I can't help mixing it up a little ;) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255752 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Headers and Footers
I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I've been using a layout.cfc for a while now. showHeader() showFooter() showLeftMenu() etc. It seems natural to me, and easy to understand. It also allows me to send in whatever data I want to the header, such as titles, meta tags, etc. If I were Bobby H. I'd be using cfhtmlhead more, but I'm Will and I like having more fun than that. :) Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255772 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Headers and Footers
If you use an application framework, or steal ideas from them, you have even more options. Model-glue is my favorite. Through your request, you add data to your viewstate object and views (pages) to your view collection object. The last thing you do in a request is run your final layout view, in which you output previously stored views. So let's say you have a blog. You would add your blog entries (probably a query) to your viewstate and include your blog view. This gives you the body content for your blog page. This view is stored in the viewcollection. Then you include your layout view, which builds the navigation, headers and footers, and drops the blog view in the middle. It just seems really clean to me. -- nathan strutz http://www.dopefly.com/ On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255481 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Headers and Footers
On 10/3/06, Teddy Payne [EMAIL PROTECTED] wrote: If you use Application.cfc, you can use the onRequest method to intercept your page loads. I've used onRequestStart and onRequestEnd to add headers and footers, works quite well aside from the fact that you then need a variable when you don't want the header/footer, like for XML stuff for JS or whathaveyou. I don't like the cfinclude on each page much for the reason I don't like DW templates. I'd way rather have a cfinclude than a DW template though... you can be pretty sure a global find and replace will catch the whole bit you want. * Yeah, ModelGlue takes care of this stuff, and many other nifty issues, quite readily. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:21 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Headers and Footers
As does Fusebox with Content Variables. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: Denny Valliant Sent: Wednesday, October 04, 2006 6:26 PM To: CF-Talk Yeah, ModelGlue takes care of this stuff, and many other nifty issues, quite readily. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255567 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Headers and Footers
Denny, As a developer who has been developing coldfusion applications now for 11 years, let me say this. Although the onRequestStart and onRequestEnd in Application.cfc is a good method for very lazy programmers, or if you're header and footer information never changes, but consider this. Custom Tag: If you developed a custom tag that could create the template required, you then have something that you could reuse in other sites by changing the style sheet, and minimise your work. But the biggest down side to the Application.cfc method you described, is you would never be able to introduce Ajax, or even webservices into your application or any form of Flex functionality. So think about how you want to expand your application first, or if you have to expand your application in the future and what problems you might have in doing this before deciding any solution to be the best. My advice would be to never use onRequestStart or onRequestEnd in that way to do header and footer processing. However if you would like to see an example of how one might use onRequestStart and end have a look at this. It has been constructed as a proof of concept, but it shows the power that you have and removing white space in this example is easy enough too. http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 October 2006 8:26 AM To: CF-Talk Subject: Re: Headers and Footers On 10/3/06, Teddy Payne [EMAIL PROTECTED] wrote: If you use Application.cfc, you can use the onRequest method to intercept your page loads. I've used onRequestStart and onRequestEnd to add headers and footers, works quite well aside from the fact that you then need a variable when you don't want the header/footer, like for XML stuff for JS or whathaveyou. I don't like the cfinclude on each page much for the reason I don't like DW templates. I'd way rather have a cfinclude than a DW template though... you can be pretty sure a global find and replace will catch the whole bit you want. * Yeah, ModelGlue takes care of this stuff, and many other nifty issues, quite readily. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255571 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Headers and Footers
Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 October 2006 8:26 AM To: CF-Talk Subject: Re: Headers and Footers On 10/3/06, Teddy Payne [EMAIL PROTECTED] wrote: If you use Application.cfc, you can use the onRequest method to intercept your page loads. I've used onRequestStart and onRequestEnd to add headers and footers, works quite well aside from the fact that you then need a variable when you don't want the header/footer, like for XML stuff for JS or whathaveyou. I don't like the cfinclude on each page much for the reason I don't like DW templates. I'd way rather have a cfinclude than a DW template though... you can be pretty sure a global find and replace will catch the whole bit you want. * Yeah, ModelGlue takes care of this stuff, and many other nifty issues, quite readily. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255598 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Headers and Footers
Denny, I was not that favourable to any framework because it depended on the job, however after now doing a lot of dojo work I have opted to combine that with MG:U and with the abilities of coldspring, reactor and ModelGlue and dojo tied together I have got an awesome arsenal there. BTW thanks for the support of the POC, its not perfect as it will not do images, other than text, but hey if one wanted to get the header content and then change that on the fly it is achievable too. I like your comment on taking 4 hours to come up with something that should take an hour, but that's life as a developer because we always change our code until we are semi happy anyway, so at the end you can say well that would have normaly taken me an hour, but I tried to do this and it didn't work so I threw it out... LOL Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255601 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Headers and Footers
If you use Application.cfc, you can use the onRequest method to intercept your page loads. After the page has been intercepted, include your head, body and footer. Your header and footer would not be centralized and can recieve conditional logic if needs be. Teddy On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255247 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Headers and Footers
You can even get really fancy and extend your application.cfc in each sub-folder to include slightly different headers / footers based upon where in the site the user is. We did that and it works awesome. -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 2:49 PM To: CF-Talk Subject: Re: Headers and Footers If you use Application.cfc, you can use the onRequest method to intercept your page loads. After the page has been intercepted, include your head, body and footer. Your header and footer would not be centralized and can recieve conditional logic if needs be. Teddy On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255248 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Headers and Footers
A the moment, I have had a lot of good experiences with including headers and footers via CFInclude. I set some sort of variable prior to this that is reference in the header / footer to determine output. I the following example, I set REQEST.Page which is used in the header to determine navigation and what not: Example page with headers/ footers: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA788F89288D39842A1 code_module=I1_2006_09_27code_height=700#0587CE131042B73A28FBA15F45B078 29 Example header page: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA799E1819E93884DA39 380418C97509A9A537C686EA8512A5DBDAA3DA22DBFAFA3B2BC8D7B49AC31F3code_mod ule=I1_2006_09_27code_height=700#911875C4F2759B4537823DD3EDD643A1 Notice that in the header, I referencing the REQUEST.Page... (SORRY of the HUGE urls). Not sure how this integrates with Dream Weaver, but since its just straight up CFIncludes I imagine it would do just fine. And now, you can manage header footer arbitrarily. You can take it one step futher and just include a _header.cfm page which would then check variables and include a TYPE of header (ex. Standard, print, email, etc). .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:06 PM To: CF-Talk Subject: Headers and Footers I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255250 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Headers and Footers
Sorry, those URLs were horrible, try this: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_module= I1_2006_10_03file_request=tags.cfm And http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_module= I1_2006_10_03file_request=extensions/includes/_header_standard.cfm A bit better. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:57 PM To: CF-Talk Subject: RE: Headers and Footers A the moment, I have had a lot of good experiences with including headers and footers via CFInclude. I set some sort of variable prior to this that is reference in the header / footer to determine output. I the following example, I set REQEST.Page which is used in the header to determine navigation and what not: Example page with headers/ footers: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA788F89288D39842A1 code_module=I1_2006_09_27code_height=700#0587CE131042B73A28FBA15F45B078 29 Example header page: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA799E1819E93884DA39 380418C97509A9A537C686EA8512A5DBDAA3DA22DBFAFA3B2BC8D7B49AC31F3code_mod ule=I1_2006_09_27code_height=700#911875C4F2759B4537823DD3EDD643A1 Notice that in the header, I referencing the REQUEST.Page... (SORRY of the HUGE urls). Not sure how this integrates with Dream Weaver, but since its just straight up CFIncludes I imagine it would do just fine. And now, you can manage header footer arbitrarily. You can take it one step futher and just include a _header.cfm page which would then check variables and include a TYPE of header (ex. Standard, print, email, etc). ... Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:06 PM To: CF-Talk Subject: Headers and Footers I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255252 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Headers and Footers
The TinyURL extension for FF rocks, you know.. :) http://tinyurl.com/jtpx6 AND http://tinyurl.com/fw97g -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 4:03 PM To: CF-Talk Subject: RE: Headers and Footers Sorry, those URLs were horrible, try this: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_module= I1_2006_10_03file_request=tags.cfm And http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_module= I1_2006_10_03file_request=extensions/includes/_header_standard.cfm A bit better. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:57 PM To: CF-Talk Subject: RE: Headers and Footers A the moment, I have had a lot of good experiences with including headers and footers via CFInclude. I set some sort of variable prior to this that is reference in the header / footer to determine output. I the following example, I set REQEST.Page which is used in the header to determine navigation and what not: Example page with headers/ footers: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4 FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA788F89288D398 42A1 code_module=I1_2006_09_27code_height=700#0587CE131042B73A28FBA15F45B0 78 29 Example header page: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4 FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA799E1819E9388 4DA39 380418C97509A9A537C686EA8512A5DBDAA3DA22DBFAFA3B2BC8D7B49AC31F3cod e_mod ule=I1_2006_09_27code_height=700#911875C4F2759B4537823DD3EDD643A1 Notice that in the header, I referencing the REQUEST.Page... (SORRY of the HUGE urls). Not sure how this integrates with Dream Weaver, but since its just straight up CFIncludes I imagine it would do just fine. And now, you can manage header footer arbitrarily. You can take it one step futher and just include a _header.cfm page which would then check variables and include a TYPE of header (ex. Standard, print, email, etc). ... Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:06 PM To: CF-Talk Subject: Headers and Footers I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255255 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Headers and Footers
Oh, I need to get me some of that :) Installing right now! Thanks! .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Crow T Robot [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 4:12 PM To: CF-Talk Subject: RE: Headers and Footers The TinyURL extension for FF rocks, you know.. :) http://tinyurl.com/jtpx6 AND http://tinyurl.com/fw97g -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 4:03 PM To: CF-Talk Subject: RE: Headers and Footers Sorry, those URLs were horrible, try this: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_modul e= I1_2006_10_03file_request=tags.cfm And http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodecode_modul e= I1_2006_10_03file_request=extensions/includes/_header_standard.cfm A bit better. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:57 PM To: CF-Talk Subject: RE: Headers and Footers A the moment, I have had a lot of good experiences with including headers and footers via CFInclude. I set some sort of variable prior to this that is reference in the header / footer to determine output. I the following example, I set REQEST.Page which is used in the header to determine navigation and what not: Example page with headers/ footers: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9 E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4 FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA788F89288D398 42A1 code_module=I1_2006_09_27code_height=700#0587CE131042B73A28FBA15F45B0 78 29 Example header page: http://www.bennadel.com/index.cfm?dax=skinspider:0.viewcodefile=462C9 E6 E7E5B1C8E6091FB8940BA7D9E49E2AE744A6169B84A729D9AE1A1A841159C8C939E4 FA6F 8ABE7EF93999A6EA0AC9898823BAC1FA8CCD7C6E0A6CEC7CBFDEBA799E1819E9388 4DA39 380418C97509A9A537C686EA8512A5DBDAA3DA22DBFAFA3B2BC8D7B49AC31F3cod e_mod ule=I1_2006_09_27code_height=700#911875C4F2759B4537823DD3EDD643A1 Notice that in the header, I referencing the REQUEST.Page... (SORRY of the HUGE urls). Not sure how this integrates with Dream Weaver, but since its just straight up CFIncludes I imagine it would do just fine. And now, you can manage header footer arbitrarily. You can take it one step futher and just include a _header.cfm page which would then check variables and include a TYPE of header (ex. Standard, print, email, etc). ... Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 3:06 PM To: CF-Talk Subject: Headers and Footers I've seen developers wrap headers in footer in many different ways. Some basic ideas just use includes, I've also seen custom tags that take attributes and effect the way a page is displayed. I'm looking for any ideas that would allow me to centrally manage header and footer content and still be able to use DreamWeaverMX2004 to make some quick table/css adjustments. Any throughts or prebuilt solutions successfully used from Adobe Exchange? Thanks. D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255258 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4