Hi, I'm trying to display a node form in colorbox. I have followed the instruction but am having no luck. The colorbox library is installed

I have a cck form that I am using for content type 'work_agreement'. I am outputting a link as such
l('Create Work Agreement', 'colorbox/form/work_agreement_node_form?destination=crs/add_agreement/' . arg(2) . '/' . $node->nid . '?width=500&height=1000', array('attributes' => array('class' => 'colorbox-load')))

Which outputs the following html:
<a href="/projects/crs rail/colorbox/form/work_agreement_node_form%3Fdestination%3Dcrs/add_agreement/74/45%3Fwidth%3D500%2526height%3D1000" class="colorbox-load initColorboxLoad-processed cboxElement">Create Work Agreement</a>

Which creates a colorbox when clicked, but there is no content inside. I'm not sure what exactly it is that I'm doing wrong because there's not much else in the way of documentation. If I try to open the link in a new tab, I get an access denied error (I am logged in as super admin). Any help?

Thanks

Comments

frjo’s picture

Status: Active » Closed (won't fix)

The attempt to support opening various forms in a Colorbox was in hindsight never a good idea. Form error handling and form redirects are complicated, a lot of code would be needed to do it correctly. The 7.x-2.x branch removes the form support from the Colorbox module.

mykmallett’s picture

Ah ok, so in that case it's something I should abandon altogether, or write custom lightbox/color box functionality for?

I did find this link which I hadn't tested but may prove useful. I feel that if I limit the type of form (ie to one with very simple processing) then perhaps I can make something work

Thanks

http://www.wgnmedia.com/en/blog/colorbox-implementation-%E2%80%9Clogin%E...