Q: Partial page rendering?

Events happening in the community are now at Drupal community events on www.drupal.org.
dlshannon's picture

I'm using calendar views in a Bartik sidebars. If someone pages the "month" calendar to, say, July, and then selects a date within the calendar to see the events for that day, that triggers a complete page refresh. The page refresh resets the sidebars so the "month" calendar is reset to the current month. (To see this, go to http://nimbleliving.com, go to the next month of the calendar, and then select a date in the calendar.)
That's really annoying. I'd much rather keep the sidebars as-is and just refresh the center section of the page. I've seen other drupal websites do what I want to do.
Someone in IRC told me that that is done using ajax, which will uses php and callbacks. I'm not high enough on the learning curve for that yet. So, my question is: is that really the only way to keep the entire page from rendering? I was hoping for something a bit more newb-friendly such as a module or an obscure view setting or a teeny bit of intuitive code that I can insert into one of the theme's files.
Thanks.
Debbie

Comments

Yes, ajax

NealB-1's picture

What you want is the exact definition of ajax. So, yes, you'll need ajax for that.

There are modules out there that incorporate ajax, but situations that require custom code are not hard to find. You don't have to be doing anything all that exceptional to run into one.

This may be of some help

value's picture

This may be of some help http://drupal.org/node/298628#comment-4675710

What you essentially need is if some moves ahead a month or so and clicks an event, the Mini Calendar will not revert back to current month.

You don't need Ajax to do that. Ajax can do it, yes, but it would require some overhauling of the actual module to support that functionality.

The above link outlines a Views based fix to the problem.

What it comes down to is this

value's picture

What it comes down to is this portion of the URL &mini=2012-?? where ?? = the month

If you use the PREV and NEXT links when viewing an actual EVENT notice the Mini Calendar stays on the Month you were looking at. That is because both of those links append &mini=2012-?? to the links.

None of the links in the Mini Calendar block do the same thing though. So the Mini Calendar resets itself to the current month when a link is clicked inside it. The Mini Calendar block relies upon &mini=2012-?? to know what month it should be displaying, if it is not present in the URL it defaults to the current month.

Thank you so much

dlshannon's picture

I've started learning php. While I found php intimidating at first (with all of those oddly placed question marks), it really is just another language (at least so far) so I'm over my fear of php. By the way, AJAX is now on my agenda after I finish the php course.
You're right - that first link you provided is EXACTLY what I'm looking for. The solution described involves php but now that I'm over my php-phobia, it's within reach.
I haven't used the URLs to maintain context yet but with my new php-powers, I'm looking forward to trying that, too.
Thank's again for taking the time to look into this and for helping.
Value, I can't tell from the picture but are you "the man in the blue shirt" from the monthly meeting?
Debbie

The Calendar upgrade fixed it

dlshannon's picture

Those wonderful people who maintain the Calendar module fixed this in the latest upgrade. They're using sessions to track the calendar settings, rather than reset the calendars with each page.
Debbie

That's awesome news! And no,

value's picture

That's awesome news! And no, I'm not blue shirt guy :)

San Diego DUG

Group categories

Event Classifications

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week