Hi,
I am developing an application that can be used by more than one client.
In my top level Application.cfm file I am using:
<cfinclude template="globals.cfm"> to pull out the client's preferred color scheme, banners, images, etc. from a PreferencesInfo table.
The globals page requires #url.clientID# in order to get the right row from the PreferencesInfo table. So #url.ClientID# needs to be passed on all pages (not a problem because it's a small application).
My problem is I'm using a custom tag for a calendar tool on an insert user form and I can't pass #url.ClientID# when calling up the custom tag (just a pop-up window date selector):
<CFMODULE
Template="../customTags/intelliCalendar/intelliCalendar.cfm"
FieldName="DateOfBirth"
FormName="userAdd">
Since this is a pop-up window I don't even need to pass the url.ClientID for the purposes of my form but since I've included global.cfm in my top level application file it's requesting url.clientID for every page I call (including for the pop-up window).
Is there some way to NOT include "globals.cfm" if I'm using the calendar custom tag?
I've tried in Application.cfm:
<cfif IsDefined("attributes.userAdd"
>
<cfelse>
<cfinclude template="globals.cfm">
</cfif>
but that didn't work (it's not recognizing attributes.userAdd).
I've also tried to append the url.client onto
<CFMODULE
Template="../customTags/intelliCalendar/intelliCalendar.cfm?ClientID=#url.ClientID#"
but that didn't work either.
Any help you could provide would be appreciated! I'll try any suggestion at this point.
Mike
I am developing an application that can be used by more than one client.
In my top level Application.cfm file I am using:
<cfinclude template="globals.cfm"> to pull out the client's preferred color scheme, banners, images, etc. from a PreferencesInfo table.
The globals page requires #url.clientID# in order to get the right row from the PreferencesInfo table. So #url.ClientID# needs to be passed on all pages (not a problem because it's a small application).
My problem is I'm using a custom tag for a calendar tool on an insert user form and I can't pass #url.ClientID# when calling up the custom tag (just a pop-up window date selector):
<CFMODULE
Template="../customTags/intelliCalendar/intelliCalendar.cfm"
FieldName="DateOfBirth"
FormName="userAdd">
Since this is a pop-up window I don't even need to pass the url.ClientID for the purposes of my form but since I've included global.cfm in my top level application file it's requesting url.clientID for every page I call (including for the pop-up window).
Is there some way to NOT include "globals.cfm" if I'm using the calendar custom tag?
I've tried in Application.cfm:
<cfif IsDefined("attributes.userAdd"
<cfelse>
<cfinclude template="globals.cfm">
</cfif>
but that didn't work (it's not recognizing attributes.userAdd).
I've also tried to append the url.client onto
<CFMODULE
Template="../customTags/intelliCalendar/intelliCalendar.cfm?ClientID=#url.ClientID#"
but that didn't work either.
Any help you could provide would be appreciated! I'll try any suggestion at this point.
Mike