Page 1 of 1

Calendar 0.7.13

Posted: Wed Feb 06, 2008 8:32 am
by Russ
Hi calguy, I was just wondering what were the reasons for removing the date from the pretty url in the latest version of Calendar?
As per your patch note:
Revision 165  - (view) (download) (as text) - [select for diffs]
Modified Thu Jan 31 19:24:51 2008 UTC (5 days, 12 hours ago) by calguy1000
File length: 21281 byte(s)
Diff to previous 164

PrettyURLS with the detaipage parameter now work for list and upcoming list mode... but I changed the format of the pretty url, and took the year/month/day stuff out.
It has gone from:
.../2008/02/12/10-Event-Title/
to
.../177/10--Event-Title/

I think I'd like to put it back, so I guess I either down grade or patch the register routes and the pretty url creation in the display stuff or would this break something else?

Also if you are going to pull the starting page for a Calendar as set in preferences, why not use that alias as the start for the route in register route in Calnedar.moduel.php line 137 indicated by INHERE. (also in the other places where needed)

$this->RegisterRoute('/INHERE\/(?P[0-9]+)\/(?P[0-9]+)\/(?P[0-9]+)\/(?P[0-9]+)-.*$/',

Best wishes,

Russ

Re: Calendar 0.7.13

Posted: Wed Feb 06, 2008 2:31 pm
by calguy1000
I took out the month and year stuff because it was incorrect, and ignored..... and I added the pageid in so that the detailpage parameter could work properly.

Re: Calendar 0.7.13

Posted: Wed Feb 06, 2008 3:24 pm
by Signex
I like it the new Calender Module update

The module still had little bugs in the custom fields, also pretty urls werent working properly when a date was clicked in a calender, but after the new release everything works great!

Thanks Calguy!

Re: Calendar 0.7.13

Posted: Thu Feb 07, 2008 10:31 am
by Russ
Thanks Calguy, I figured it was something like that. Anyway the reason for my query was I needed make sure Calendar URLS' were now settled? Because I needed to add a search for Calendar to the normal Search module as piSearch has stopped working in my latest version of CMS. Don't know why, it seems to time out after bout 30 seconds and I can't fathom it. It also looks like it is unsupported so I thought I'd better use something else.

So i started looking at how News does Search and adding it into Calendar. I seem to have it searching (working) for Calendar titles and summary but not details. Now it could be that this is the same as News which doesn't seem to search articles, unless I'm doing something wrong? If there is a way, I'd like to try and search event details as well.

What is currently does is add search items for titles and summary for Calendar on adding, indexing and updating events and removes them on event deletion. However, there are a few places for the code for some of these and I might not have it in all the right places, also not much information on 'AddWords' in API? Let me know if this is of interest to anyone else. At the moment it also ignores categories, sorry.

Russ