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 |
Jump to:
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
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
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
why don't you give my code above a try and see if that works for you.
#4
starbow,
I tried the above code in my module but it does not work.
#5
Automatically closed -- issue fixed for two weeks with no activity.