• Resolved Mickey Glasgow

    (@micgib611)


    All my events are 1 week events (7 days). They’re actually “timeshare” weeks. However there are certain circumstances when only some days of the event week need to be displayed differently. They’re “rental” days and identified in a database table outside of the my_calendar schema. When outputting the grid I can in the “rental” date as $process_date and alter the default display. But when a grid cell (day) is clicked it calls mc_get_event to get the body of the Details page. I don’t know how to provide mc_get_event day date of the grid cell that was clicked and alter its default display.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’m not totally clear on what you’re trying to do here; is it the single-page details that you’re trying to alter on the fly, based on what date was clicked on? I think that seeing a mock-up of what you have vs. what you want might help clarify, but right now I’m not sure what you’re aiming for.

    Thread Starter Mickey Glasgow

    (@micgib611)

    Many thanks for your reply.

    Yes, that’s exactly right, I’m trying to alter the single-page details on the fly. I was hoping to solve this with just PHP code, but I think it’s going to take a little javascript (jQuery) to get the detail page’s parent node. I’m new to js.

    Thread Starter Mickey Glasgow

    (@micgib611)

    Specifically I want to get the “<td id” value that includes the calendar date that was clicked on in the grid.

    Plugin Author Joe Dolson

    (@joedolson)

    I think your easiest path would be to customize the details link and add the additional parameter for your date ID.

    There’s a filter to modify that on the fly, mc_customize_details_link, which is passed the default details link & the event object, so you could run a filter that returned the link with an additional parameter for what you need.

    Thread Starter Mickey Glasgow

    (@micgib611)

    Thank you, thank you. Your suggestion worked well for my needs.

    Thread Starter Mickey Glasgow

    (@micgib611)

    Forgot to mark as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Detail page needs access to invoking grid date’ is closed to new replies.