Hi,

I would like to add node links to profile page, I especially need to have the addtoany button (http://drupal.org/project/addtoany) available for user profile page, but I have not been able to figure out how to add node links to panel when using Content Profile Kit module. Can someone please let me know how to get this done? Thanks =)

BB

Comments

Michelle’s picture

Title: How to add links to profile page? » How to add links to page manager based page
Project: Advanced Profile Kit » AddToAny Share Buttons
Version: 6.x-1.0-beta2 » 6.x-2.4
Category: feature » support

This isn't an APK issue. You need to find out how to make addtoany work with Page Manager / Panels. Moving it to their queue.

Michelle

blueblade’s picture

Status: Active » Closed (works as designed)

Thanks. Just got it figured out actually.

chaloalvarezj’s picture

Issue summary: View changes

Would you mind to share how? Please.

Cogax’s picture

I had a similar problem. I used panels_everywhere which maybe causes the bug. Here is how I solved the issue, just for information:

/**
 * Implements hook_init().
 */
function mymodule_init() {
  global $_addtoany_num;

  // Add to any problem fix:
  // hook_page_alter is executed before hook_block_view (probably caused by
  // panels_everywhere). In hook_block_view the code bellow is called, which
  // sets $_addtoany_init to true. In hook_page_alter we need this to be true!
  // So bellow is a fix for that, we will call it manually (before everything)
  // but reset the counter.
  addtoany_create_node_buttons(menu_get_object());
  $_addtoany_num--;
}