Forum OpenACS Q&A: Re: problem with calendar css in ver. 5.3.1

Collapse
Posted by Emmanuelle Raffenne on
Hi,

If you use the default-master template then I think it can be fixed by editing packages/calendar/www/view.{tcl|adp} as follow:

In view.tcl, add:

 if {![template::multirow exists link]} {
     template::multirow create link rel type href title lang media
 }
 template::multirow append link \
     stylesheet \
     "text/css" \
     "/resources/calendar/calendar.css" \
     "" \
     en \
     "all"

And in view.adp, remove:

 <property name="header_stuff">
   <link href="/resources/calendar/calendar.css" rel="stylesheet" type="text/css">
 </property>

and substitute it with:

 <if @link:rowcount@ not nil><property name="&link">link</property></if>
Collapse
Posted by Ratnakar Sagare on
Thanks Emmanuelle,
It works fine for viewing the calender. But the problem still persists if I click any item on the calender i.e. viewing the calender item.
Should I replace the same code in cal-item-view.{tcl|adp}?

Thanks again,

Ratnakar

Collapse
Posted by Emmanuelle Raffenne on
Hi Ratnakar,

Yes, same for cal-item-view.{tcl|adp} and also for cal-item-delete-confirm.{tcl|adp} and cal-item-new.{tcl|adp}

Collapse
Posted by Ratnakar Sagare on
Thanks all,
Now it works fine.

Ratnakar