Forum OpenACS Q&A: calendar

Collapse
Posted by Iuri Sampaio on
does anyone knows how to change the mini-calendar by default from month to daily??
now is set on month, and i tryied to find where on the files
/home/yabt/yabt/packages/calendar/www/mini-calendar.adp
/home/yabt/yabt/packages/calendar/www/mini-calendar.tcl

it's on the functions on those but i can't find where it set the variable "@view" if you go to this page you will what i'm talikng about. can you see passed through the link the variable "view"?

http://www.myybiz.net/calendar/view?date=2006%2d03%2d23&view=month

so it must be that one i need to change, isn't it?

please help!!!

Collapse
2: Re: calendar (response to 1)
Posted by Ben Koot on
Iuri,

Go to sitewide admin, select calendar and go to parameters. There you can change the default presentation format by replacing "month" with day or year.

Good luck
Ben

Collapse
3: Re: Re: calendar (response to 2)
Posted by Iuri Sampaio on
we got a good example to explain how confuse is oacs to beginers,
my oacs box has two admin sections, actually three or more i only know 3 and this one is dotlrn admin but i'd rather let it out.

so, my oacs has http://www.mysite.com/admin as title is
Main Site Administration

and
http://www.mysite.com/acs-admin as title is Site-Wide-Administration

then sometimes i create things on the first that shows up diferent on the second and vice-versa and the whole mess takes place on my mind

Ben,
About the calendar parameters each one admin section took me to diferent places that i could change parameters.
i've been on both i changed it. But nothing happened.

see the mini-calendar there?
http://www.myybiz.net

Collapse
4: Re: calendar (response to 1)
Posted by Ben Koot on
You could try the developer admin, that link however is misplaced. You'll find it hidden in the right hand corner on the sitewide admin page. I agree confusing and ilogical. A better place would be as part of core administration.

Cheers
Ben

Collapse
5: Re: Re: calendar (response to 4)
Posted by Iuri Sampaio on
So,
why don't the people think about organize on a clear and logical way?? Is that dificult start to organize it??
Collapse
6: Re: Re: Re: calendar (response to 5)
Posted by Iuri Sampaio on
then just to enphasize what i said before about how unclear and ilogical oacs is...

The answer to change the default value of the calendar from month to day, it was only go to the code and on the include call on the page "site-master.adp" and change the value of an atribute:
include src="/packages/calendar/www/mini-calendar" base_url="/calendar/view" view="day" date="@date@"

iuri