Active
Project:
Popups API (Ajax Dialogs) [D7]
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2009 at 23:19 UTC
Updated:
29 Jul 2009 at 17:26 UTC
I have scoured the issues and readme.txt file for a way to implement popups to allow a node edit form in a popup. I my be just missing something simple but I cant for the life of me figure out how to get a link to show up in a popup. in the documentation it says
And then either be sure popups_add_popups() is called sometime for the page, or use the "Scan all pages for popup links" checkbox on the popups settings page.
bottomline-I am just lost and need serious help before I lose it. if someone could give me a step by step tutorial of how to get a link on the user profile page (created in the user-profile.tpl.php) to use the popup api I would be super super grateful.
Comments
Comment #1
sirkitree commentedcheck the 'scan for all popup links' on /admin/settings/popups. then simply give your link a class of 'popups'.
Comment #2
lelizondo commentedsubscribing. I still don't get how to give the link a class of popups.. creating a module with:
won't do anything
I'm pretty sure I'm missing something obvious because Popups Administration Links isn't working, not even with garland.
The only thing that works are the messages.
Comment #3
lelizondo commentedOk, I've got something. I'm sure it's not the right way to go but it's working and I'll appreciate anyone who could explain a better way to do this:
in admin/build/themes/settings/community the Content Selector is: div#page > div#center. That's only because of the theme.
in admin/settings/popups I have selected "Scan all pages for popup links."
I'm overriding theme_node_form with something like this:
notice
Clear the cache and try to add any node. You'll get a popup with the node form, but not the form title.
Any help with this to do it some other way?
Comment #4
nwe_44 commentedI'm trying to do something similar, along with adding the edit links generated by views to the list of popup links.
At the moment I"m trying to use hook_link_alter() to add classes like "popups-form" to the links I want, along with turning on the popups api option "scan all pages"
I'm pretty new to using hooks at all so any help would be much appreciated.
Comment #5
Parkes Design commentedI've got the links on the profile page to bring up the popup form, validation and everything works but when submitting the form to return to the user profile page the page loads within the popup?
Has anyone had this problem before?