Hi,
I am currently working on my first Drupal website. I have an event content type with event title, description , Date. The view should show a paged list of the events, with an option to move back and forth between the previous and next months . In addition, if the day of the event is Tuesday, it should a letter in front of the name indicating the day of the week (Please note that the website is multilingual). I am not sure how can these issues be tackled in drupal? I know how to build a basic paged view for the event, but I don't know how to move back and forth between the month and how to print the event day. I cannot think about this the "Drupal way"

This is an image which better indicates what I am talking about http://i53.tinypic.com/jpa00p.png

Thanks!

Comments

seancorrales’s picture

Start by looking at the Calendar and Date modules. They should provide the ground work for the ability to move between months.

drupalpal’s picture

The problem in the calendar module lies in the fact that the display options either display the data in a calendar which end up displaying the days that don't have an event or in a block which lacks the navigation between months capability. What I exactly need is to display the upcoming events in the current month with paging and navigation between months capabilities.

Any help on how this could be done ?

Co-Founder and Web Developer at Beyond Designs

cfox612’s picture

Seems like this wouldn't be too difficult. You would need a little Javascript to code the buttons properly (placed in the "header" section of the view). Then in the actual view simply pull the events from that month (and style accordingly).

The header is where you would code the buttons. Not sure if you can put PHP in there (if so that would make things a bit easier), but javascript should definitely be accepted.

drupalpal’s picture

I can write PHP code in the header section . So what you are suggesting is actually printing the current month through PHP , and passing the previous month and the next month date through the navigation buttons ?
BTW, How can this be done using javascript ?

Thanks!

Co-Founder and Web Developer at Beyond Designs

nevets’s picture

I have not tried it yet but the latest calendar module has the view elements separated so you should be able to make a view using its pager while listing the content you want.

drupalpal’s picture

That's right, but I had to use is to clone the original block view and start from there to keep the navigation .I don't know why, but this is the only way through which it worked.

Co-Founder and Web Developer at Beyond Designs