Page 1 of 1

CGCalendar url errors

Posted: Thu Feb 20, 2014 5:48 pm
by nervino
Hello, I'm using CMSMS 1.11.10 and CGCalendar 1.13.3.

I put in my home page template 2 tags:
{cms_module module="CGCalendar" display="upcominglist"}
and
{cms_module module="CGCalendar" display="yearlist"}

The two tags display events as expected.

In the config tab of CGCalendar I have chose a default page (events-calendar) for the module (that contains {cms_module module="CGCalendar"}) and I set a default prefix for Pretty URLs (events).

Links generated by {cms_module module="CGCalendar" display="upcominglist"} have pretty urls and display the details in events-calendar.

The problem:
Links generated by {cms_module module="CGCalendar" display="yearlist"}:
- Year pagination urls are not pretty, but they change the year;
- Detail urls haven't the prefix "/events/" and have "/calendar/" instead, and they give a Not Found error.

I've read in the bug fixes of the module that the ugly url issue with display="yearlist" was fixed last october, so I guess I'm doing something wrong. But, what..?

Thank you for help

Re: CGCalendar url errors

Posted: Sat Feb 22, 2014 6:40 pm
by Rolf
Most URLs in CGCalendar are "ugly". The module needs the parameters in the URL, you can't change that...

Re: CGCalendar url errors

Posted: Sat Feb 22, 2014 8:39 pm
by nervino
Hi Rolf, I know that modules need parameters in the url, but for "ugly" I mean something like this:

Code: Select all

http://www.mysite.com/index.php?mact=CGCalendar,m89722,default,1&m89722display=yearlist&m89722year=2015&m89722returnid=15&page=15
that I have in year pagination links;
while for detail links I have:

Code: Select all

http://www.mysite.com/events/34/4-Test-Event

Re: CGCalendar url errors

Posted: Sat Feb 22, 2014 8:54 pm
by Rolf
That is normal behaviour. Check http://www.zeijen.nu/agenda

Re: CGCalendar url errors

Posted: Sat Feb 22, 2014 9:07 pm
by nervino
I see. I had confused a post in the bug tracker that I've read sometimes ago (http://dev.cmsmadesimple.org/bug/view/7934), so I thought pretty urls were implemented in year pagination.

Thanks Rolf.