[wp-hackers] proposal: context based urls
    Burobjorn 
    burobjorn at gmail.com
       
    Wed Apr 18 20:33:56 GMT 2007
    
    
  
Hi,
I would like discuss an idea that recently popped up during the 
development of some custom made plugins for my clients.
A lot of people seem to use Wordpress as a 'poor man's CMS' and while 
Wordpress is and has been very flexible I would like to propose to use a 
new form of url system which might make it even better. The general idea 
is that the urls would be used with a system wide dispatcher routing the 
urls to previously registered callbacks. Similar to the way Drupal does 
this.
This new system would follow the basic idea that the Wordpress urls are 
built up using the following principle:
1) A wordpress url consists of a base domain e.g.
www.wordpress.tld or wordpress.tld
2) Followed by a unique context parameter e.g.
/post
/home
/somepluginname
/category
/search
/blog (in the case of WP MU)
etc
3) Possibly followed by a unique action parameter e.g.
/view
/get
/remove
etc
4) Possibly followed by one or more values
/2007/05/13/
/uncategorized
/some+search+term
Some example urls:
http://www.foo.tld/post/view/2007/04/13/my-bad-hair-day
http://www.foo.tld/myplugin/view/addressbook
http://www.foo.tld/search/some+search+terms-withoutthisterm
http://www.foo.tld/home
Please let me know what you think of this. Does this make sense or am I 
trying to do something that already exists in WP (MU) using the 
permalinks or rewrite options?
All the best,
grtz
BjornW
    
    
More information about the wp-hackers
mailing list