I would appreciate if anyone has an example of getting a view page to render in modal format.

Thanks

CommentFileSizeAuthor
#1 Screen shot 2012-01-31 at 8.16.52 AM.jpg280.25 KBcapellic
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

capellic’s picture

I was about to suggest the following code per the code that I'm using to alter the menu path for adding a node which can be found here:

http://drupal.org/node/1422002#comment-5535750

function mymodule_menu_alter(&$items) {
  $items['node/1010']['modal'] = TRUE;
}

But I get the following 404 error through the AJAX request (attached)? This is also happening when altering the edit link like so:

function mymodule_menu_alter(&$items) {
  $items['node/1010/edit']['modal'] = TRUE;
}
dealancer’s picture

Status: Active » Fixed

I guess you need to do following:

function mymodule_menu_alter(&$items) {
  $items['node/%node/edit']['modal'] = TRUE;
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.