Monday 24 September 2007 7:53:43 am
I have this multisite to develop...
One site / 4 languages / 4 designs / one database / category and products to be seen related to the URL used to access the site
The site will be used from 4 different countries with it's own design,
depending on the URL's access to the site I should change the design,
this is solved via it's own siteaccess, but also I must show or not certain categories of products.
Now, this sounds quite simple but the only idea I have is to add Check
Marks attributes to the Category Class and associate them with the URL's they can be accessed from.
This will allow me to make fetches of category trees, but I must first
check from what URL I have been visited from and get, while comparing
(via fetch), the Category Objects and his check marks to allow or not to be added to the array by the fetch function when getting the objects.
This is very inefficient and surely will consume extra time as being the fetch function a very used code all arround the site.
I cannot use roles because things could be very complicated due to the
constant changes of the categories status as from who they are going to
be seen (from witch URL), so I assume check marks that will relate the category with the URL could solve this issue. So I need some Ideas of a simple way of handling this... "URL versus Fetch"
I was wondering if I could set up (only once for each session) several
global variables (that will be "active" for each user session) and
knowing the status of the variables I could implement a better fetch or else. But I am not sure if this could be an efficient piece of algorithm.
Anyway if someone has a similar problem or a better idea it will be nice to hear from you. Thanks...
Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com
|