Hello,

firstly, great module!

I need support to add this behaviour to an "edit" link on the node view done by node.tpl.php. For my understanding, the paths "admin/*..." are catched by popups_popups() hook. In that case, the form could manipulated.. BUT my question is how to integrate it in the edit-link of a node-view?

My example is a node from type link (build with cck). That link should by edited by user directly in front- or taxonomy page..

Could you give me some inspiration to find the solution? Best practise ;)

Thanks a lot,
Tom

Comments

fragtom’s picture

Status: Postponed (maintainer needs more info) » Active
starbow’s picture

Status: Active » Postponed (maintainer needs more info)

Has this been addressed in the current version?

2ndChanceTech’s picture

I to have been trying to figure out how to add the effect in various places still.

One being the edit link/tab on node, so that a node can be edited from a pop-up.

And the other that would be great is how to add popup support for comments.

The only way I know is to edit the core modules which is highly frowned upon, so I have yet to do it.

You have any suggestions on how to achieve these?

starbow’s picture

> One being the edit link/tab on node, so that a node can be edited from a pop-up.

That is a hard link to target in a theme-independent manner. Something like this should work, but you might have to adjust for your theme

function my_module_popups () {
  return array( '*' => array(
    'ul.tabs a[href$=/edit]',  
  ));
}

> And the other that would be great is how to add popup support for comments.

After line 3, add

    '.links a[href^=/comment/reply]',

Of course, this can varry based on your site theme and comment settings.

2ndChanceTech’s picture

Hello, I've been trying to implement this on the theme level (within template.php). But can't seem to get it to work.

function phptemplate_popups () {
  return array( '*' => array(
    'ul.primary a[href$=/edit]', 
    '.links a[href^=/comment/reply]',
  ));
}

Using firebug to inspect "Edit" Tab. I get this

#content-tabs ul.primary li a:link, #content-tabs ul.primary li a:visited, #content-tabs ul.secondary li a:link, #content-tabs ul.secondary li a:visited {

Using firebug to inspect "Add Comment" Link. I get this

div.node .read-more a, div.node .more-link a, div.node .links a {

I have tried multiple alterations, but can't seem to get either one to work. This is for the Aquia Marina theme.

I was working within the template.php file and have not tried making a module.

Any help would be appreciated, thanks so much.

starbow’s picture

hook_popups does not work inside of template.php. You will need to create a custom module.

fragtom’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)