views:

206

answers:

2

i have a calendar view its working pretty fine,,, but i need to restrict the results to one per date, if i have five events, my view looks odd so thought of adding a more link and displaying only one result per date.....

is there any way to this,, i have tried limiting the view to display the results to 1 but it doesn't work

A: 

le t me explain u clearly,,,lets say i have five events to ten events on the same date... it displays as long list![alt text][1] as shown,

i want to display only one item per date and more link where he can see all his meetings

rakeshakurathi
A: 

I have implemented a similar functionality by changing calendar template files. The one I've used is calendar-datebox.tpl.php (it formats the date in each cell of a calendar, but I used this one because other calendar templates don't seem to contain all variables I needed).

Copy the default version to your theme and try to play with it. You will see there is a bunch of useful variables, one of them is:

// $items: An array of items for this day.
voidmain

related questions