Hi
A while back I started a thread discussing the best approach to
supporting 'friendly + readable URLs' (i.e. www.mydomain.com/categories/fans/ducted
instead of mydomain.com?CID=7897&dom-yes etc)
General agreement was that the OnRequest handler is a good place to
handle this and the Active4D demo has some great examples of how to do
exactly this for the fusebox URLs (i.e. instead of ?
fuseaction=home.main, it handles home/main ).
This is exactly what I need as far as it goes but my customer wants
the query parameters streamlined as well. So what I need to do is
parse the rest of the URL (e.g. /type/product/name/
ducted_fan_26_inch_radial) and have it end up as regular query
parameters when the request hits the handler
What I'd like to know is are there any example for this floating
around or do I just extend the handler myself by parsing the trailing
pairs in the URL and changing "type/product" to "type='product' and
returning the result in the OnRequest handler. (From there I assume
they'll find their way into the attributes collection of the Fusebox
framework automatically).
(Conversly, I need to extend the custom makeUrl method similarly).
Regards
Peter
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/