Customizable URL patterns in the core
Trustmaster |
|
---|---|
Okay, I have thought this feature over, also reviewed WordPress to see what most users request. I would say, exact WP way is suitable for WP since it's a very specific thing, but Seditio is somewhat much more generic on its own. So, I suppose URL management will be done with a small script in very simple and efficient "URL Transform Language" consisting of rules like:
page al=* /page/{$al}{$query_string}Which means "for urls with area 'page' and parameter 'al' set to any, transform it into /page/alias_value and append the rest of the query string in default format", where "default format" is also customizable. The rules will be editable in Admin and saved into one script file, so different URL-transform presets will be bundled as simple files (without any SQL bloat, etc.). The editor will automatically generate mod_rewrite files too, support for the following webservers will be provided: Apache, IIS, Nginx. In the code, any URLs will be constructed by calling one simple function sed_url() which takes 3 parameters: site area (script name, e.g. 'page'), list of parameters (as associative array key => value, or in traditional query string format) and optionally page anchor. Agree/disagree? May the Source be with you!
|