Hello
I have to insert a panel as a "tab/MENU_LOCAL_TASK" of the user profile and I was not able to do it properly from the panel interface (it is an APK one so I suspect there is lots of interactions).
In the end I took the route to do some code, defined a new menu entry and everything is fine, my callback is called with the $user object parameter need, and the menu entry is rendered as a tab at the right place.
Now I need to render my panel sitting at viewsomeinfo/%user and pass it to the output of my callback.
How can I do that, either by instancing the panel with a context containing my $user or through some other way ?
The panel page at viewsomeinfo/%user does not seem to have a form id so I can't user drupal_get_form() or such.
I thought about using ctools_content_render from the ctools, but I was not able to figure the right value for the parameters, even from http://drupalcontrib.org/api/drupal/contributions--ctools--includes--con..., like $type and $subtype values for a "page panel" or the proper content of $conf.
Is that the right way to it or is there a more simple way ?
I am ok with being pointed at sample code, I just don't know where to look, most people seems to do render in themes, or being using mini panel that can't be used in my case since I need to pass parameters to the panel.
thanks a lot for your time.
Comments
Comment #1
Letharion commentedHello!
Unfortunately, this issue has remained open, without activity, for a very long time. I hope you can understand that between maintaining the module, work, and other obligations, the maintainers are very busy. This leads to not all issues being answered.
In order to figure out who still actually needs help, I'm going over all low activity support requests that has not been touched for 6 months, and marking them "Postponed, needs info". In many cases, I expect the question to already have been answered, or become obsolete.
If you still care for this issue, please just reset it's status to active, and we'll try to help you. Please remember to post any new information that may be relevant, such as new versions of Panels that you are using, or own attempts at debugging.
Regards, Letharion
Comment #2
Letharion commentedA month has passed, and I'm going over the issue queue ones more. Some issues have been closed for other reasons, some re-opened, but this issue has remained silent for the past month.
Because of this, I'm doing a bulk close of a number off issues. I'm sorry that it happened this way, but the issue queue has had to few contributors, and to many questions.
Again, as said in the previous comment, feel free to re-open the issue by setting it to active, if you still need help.
Regards, Letharion.
Comment #3
DrCord commentedComment #4
DrCord commentedthis would be very helpful to have a documented way to embed a panel into a hook_menu function as a callback.
Comment #5
japerryDrupal 7 is no longer supported, closing.