0

I am using the Make Meeting Scheduler for my site, which is a Doodle-like scheduler module. This module makes it possible to insert a field (only field, not available as block) into a node. However, I need to open this field inside Colorbox.

I know a possible workaround would be to create separate nodes with only the Make Meeting field and then connect them to the original nodes where I need them, but this is definitely not an elegant solution.

I'm really not good with Drupal templates and that is why I haven't come up with a better solution. I suppose I should edit the template, print a link with the class "colorbox-load" and have that link point to the Make Meeting div. Problem is, I am currently clueless as to how to do that.

0

The easiest way to do this is through views. You can configure a view with an "Contextual Filter" of the node id to show and then configure it to show your makemeeting field here. Here's a screenshot of a view that worked for me (note the important parts are marked with arrows.

enter image description here

Then when I go to /meeting-popup/6 (where 6 is the id of a node with a meeting field) i see the following.

enter image description here

Then you can add a link to /meeting-popup/ on the nodes page using the lightbox-load class so it will showup in a popup.

Lastly you can theme the meeting-popup pages so that they only show the content and don't show any regions/sidebars, etc.

Alternatively you can have views make it into a "block" if you know of a good way to do it that way.

2
  • Okay, I managed to make everything work except the contextual filter. It's my lack of knowledge, I'm sure you explained it quite well. Could you please clarify that? I added a link to my nodes that goes like this <a href="/make-meeting" class="colorbox-load">Make an appointment</a>, but I still get all of my fields in the colorbox. Could you please help me with the contextual filters bit? How do I get only the fields for the specfic node?
    – alouette
    Dec 5 '13 at 23:16
  • The link needs to be /make-meeting/10, if 10 is the node id of the current node the user is looking at. So you will need to do some PHP ($node->nid) or use tokens [node:nid] depending on how you are inserting the link.
    – Thomas4019
    Dec 5 '13 at 23:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.