URL parameters
Permalink
using the view's "action" function, is there a way to provide the friendly url. So instead of rendering , and related, is there a way to retrieve the parameters from some array? I am wondering if its already built in, or do I create a rewrite rule with Apache? Looking through the view.php library, it would seem that URL_REWRITING_ALL has an effect, but not quite sure how to set etc, and was looking for some guidance.
index.php?cID=33&bID=34&arHandle=Main&btask=passthru&method=removeEntry&entryID=1
I've got a calendar on a page, and I'm looking to click a date (no issue there), and have a url like "www.c5site.com/reports/time/20081015" or ".../time/2008/10/15" and be able to use that 20081015 as parameters. I'd prefer that over using the "index.php?cid=34&bttask=view&dt=20081015" url. Its not too big a deal, just thought I'd see if there was something already built in to handle that type of url.
So far everything I've looked at in c5 has already had an option which just needed to be activated, so rather than putting my own handler in to manage these, I thought I'd see if there is already an array or other property which would contain the parameters, or if there is some standard which c5 supports.
In the dashboard (or while editing) I could care less about the urls, but for the front end I've been trying to be more aware of the url's appearance.
So far everything I've looked at in c5 has already had an option which just needed to be activated, so rather than putting my own handler in to manage these, I thought I'd see if there is already an array or other property which would contain the parameters, or if there is some standard which c5 supports.
In the dashboard (or while editing) I could care less about the urls, but for the front end I've been trying to be more aware of the url's appearance.
no, now if you turn pretty URLs from the dashboard c5 will interpret those as expected child pages....
so c5site.com/calendar/12-07-2008
would be a calendar page off of the root with a page titled 12-07-2008 in it.
so c5site.com/calendar/12-07-2008
would be a calendar page off of the root with a page titled 12-07-2008 in it.
ok, probably not all that easy to do then. I think I may have some django url mapping on the brain.
http://docs.djangoproject.com/en/dev/topics/http/urls/?from=olddocs...
I had been toying with django prior to finding c5, but the ole python skills are limited and c5 was exactly the pre-built cms I was after.
http://docs.djangoproject.com/en/dev/topics/http/urls/?from=olddocs...
I had been toying with django prior to finding c5, but the ole python skills are limited and c5 was exactly the pre-built cms I was after.
why?
there's been some requests to rethink the way the content block hardcodes links using a cID for SEO purposes, but what's the advantage in having pretty URLs while you edit a site?