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


#1 Screen shot 2012-01-31 at 8.16.52 AM.jpg280.25 KBcapellic
Members fund testing for the Drupal project. Drupal Association Learn more


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:


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.