I was chatting in IRC and mentioned this module as an excellent module for D6 aministrators, patchak asked me if there was a way to get the dialog in the node/add page, and I thought it was a great idea. I read in another issue that you can add a class="popup" to your links and they would appear in a popup, so maybe this can be done with theming, but I don't know. It'd be a cool to have this feature in the module, thanks for the hard work.

Comments

starbow’s picture

Status: Active » Fixed

Yep, you can do it in the theming layer. You can also create you own module and define hook_popups, with something like:

 function my_popups() {
    return array(
      'node/add' => array (
        'a[href~=node/add]',
      ),
    );
  }

I don't see much value from making those links popup, but that is how you could do it.

drupal_bineec’s picture

Here is what I have added in my module.

function my_mod_popups() {
    return array(
      'node/add/mc' => array (
        'a[href~=node/add/mc]',
      ),
    );
  }

This does not work, can any one help me in finding out what might have gone wrong

starbow’s picture

why don't you give my code above a try and see if that works for you.

drupal_bineec’s picture

starbow,
I tried the above code in my module but it does not work.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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