Calendar 0.7.13

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Calendar 0.7.13

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Calendar 0.7.13

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Signex

Re: Calendar 0.7.13

Post 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!
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Calendar 0.7.13

Post 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
Post Reply

Return to “Developers Discussion”