however if i do something like this (below) it doesnt work???? I can put it on indiv pages with a message instead of header and it works but as it is it just shows the non admin header
examples http://65.36.226.10/content/contact.cfm http://65.36.226.10/admin/news/addNews.cfm in application.cfc <!--- if check to see if user is in admin section and show correct header if so ---> <cfif #GetDirectoryFromPath(GetCurrentTemplatePath())# contains "admin"> <!--- set admin header ---> <cfset header = "/admin/controls/headerAdmin.cfm"> <cfelse> <!--- set non admin header ---> <cfset header = "/controls/header.cfm"> </cfif> <!--- include main application header on all pages ---> <cfinclude template="#header#"> ~Dave the disruptor~ "Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time." ---------------------------------------- From: "dave" <[EMAIL PROTECTED]> Sent: Thursday, November 03, 2005 1:36 PM To: CF-Talk <[email protected]> Subject: RE: determining if template is isn a specific folder yup that works :) I was doing the same thing with cgi scope but wouldnt work, didnt even think bout this one. Thanks ~Dave the disruptor~ "Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time." ---------------------------------------- From: "Bobby Hartsfield" Sent: Thursday, November 03, 2005 8:02 AM To: CF-Talk Subject: RE: determining if template is isn a specific folder You should be able to get what you need from this #GetDirectoryFromPath(GetCurrentTemplatePath())# ....:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: dave [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 1:30 AM To: CF-Talk Subject: determining if template is isn a specific folder i want to check to see if the page is sitting with a certain folder and then run some code (in Application.cfc) I know how to do it with a specific file like index.cfm but what about a folder? say if the folder is "stuff" and there is a folder tree like so root stuff admin stlesheets images cfcs and im i want to look and see if the template being called is from the "stuff" folder, how would i pick that out? can I use "contains", i tried it but no luck ~Dave the disruptor~ "Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223097 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

