I want to add an AREAID variable to all CFM template of my application. (>than 1000 templates)
This areaid variable is an interger that must represent the current Area (city) and all the services of the site have to work according this value.
For example:
I have a forum, a webshop, a cms (for news) and an ads application that right now works only for ONE city.
I have added the AREAID field to all the tables of my application and now when an AreaID=1 has passed from URL, form or other method, all the services i've already mention, have to work for this AreaID.
I've also changed ALL the queries and add this AreaID, so if i'm for example in the news section of the site, and the areaid is 1 the query goes like:
SELECT * FROM NEWS WHERE areaID=1
What i need is a method to pass the areaID value into EVERY template of the site without adding it as application, session or cookie variable and of course WITHOUT changing the 1000 and more templates all the href, forms, cflocation etc adding the &areaid=#areaid# ...
IS there any other method to do this?
Is it possible for example everytime the user click's on a link of the site and another page loads, to carry this AreaID value?
(of course i want to dynamicaly change this AreaID value whenever needed, to change the city...)
This areaid variable is an interger that must represent the current Area (city) and all the services of the site have to work according this value.
For example:
I have a forum, a webshop, a cms (for news) and an ads application that right now works only for ONE city.
I have added the AREAID field to all the tables of my application and now when an AreaID=1 has passed from URL, form or other method, all the services i've already mention, have to work for this AreaID.
I've also changed ALL the queries and add this AreaID, so if i'm for example in the news section of the site, and the areaid is 1 the query goes like:
SELECT * FROM NEWS WHERE areaID=1
What i need is a method to pass the areaID value into EVERY template of the site without adding it as application, session or cookie variable and of course WITHOUT changing the 1000 and more templates all the href, forms, cflocation etc adding the &areaid=#areaid# ...
IS there any other method to do this?
Is it possible for example everytime the user click's on a link of the site and another page loads, to carry this AreaID value?
(of course i want to dynamicaly change this AreaID value whenever needed, to change the city...)