popups on node/add page?

ipwa - July 11, 2008 - 09:57
Project:Popup Dialogs
Version:6.x-1.0-beta3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

starbow - July 17, 2008 - 19:00
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.

#2

drupal_bineec - July 19, 2008 - 02:35

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

#3

starbow - July 19, 2008 - 07:26

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

#4

drupal_bineec - July 19, 2008 - 14:37

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

#5

Anonymous (not verified) - August 2, 2008 - 14:45
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.