"Colorbox node" works fine with node loading in a colorbox, so simple and easy to set up. But I don't find the same level of simplicity with regions and panes. I understand this is experimental code, but I can't see how to test it.

With panes, I checked the appropriate box in panel's rules but nothing happens when I reload the page. Just my pane is not displayed, what seems normal to me, but I was expecting either the pane to load automatically on a colorbox on page load or to see a link to click in place of the disappeared pane.

For regions, with the option in modules settings activated, what I understood at first was that if in a link I have something like "/mypage#myregion" and class "colorbox-node" then colorbox should load just the content of the "#myregion" element, instead of the entire "/mypage" content. But what I have in this case, is just the header and footer of my theme but no content at all is displayed. Then reading again the module's page, I realized that it was too easy this way to be true :) and that I had to deal with context (context module). So, under "admin/structure/context", I try to add a new context : under "conditions" I find a "Colorbox Modal" condition with a checkbox to enable. The checkbox description says "Set this context based on if you are viewing your content inside a colorbox modal." It's not very clear what I should understand here with my imperfect English. Have I to be already in a colorbox window for the condition be taken in account and the actions to be executed ? But this is not the real problem. The problem is I don't see what action to add under the context's actions section. What makes sens among the options offered is the "regions" option, but there I just can remove sections, not add. I was expecting to find something like condition "chose element clicked" or "a specific construction found in url, or class " , etc., and action "add region to colorbox". In conclusion, I don't see how to get further on testing this functionality.

Comments

erwangel created an issue.

iLLin’s picture

It's been a while since I have taken a look at this part. But try this, add a context that is when colorbox is active. Then add blocks to a region and see if it is displayed when you view the colorbox modal. I "think" that is how it is supposed to work.