Including an author pane in a panel that I'm using to override a node display (Panels version 7.x-3.0-alpha3) doesn't work -- the author pane isn't displayed at all. All the visibility settings are set correctly, and it's not being hidden with css, so it should have worked.

Comments

BenjaminRH’s picture

Assigned: BenjaminRH » Unassigned

didn't mean to assign this to myself!

Scyther’s picture

Assigned: Unassigned » Scyther
Issue tags: +7.x-2.x-beta-blocker

I have not testing the integration with Panels jet. So it can be that this is not working.

BenjaminRH’s picture

I know that I can print the Author Pane out through the theme, and I have custom PHP filter enabled so I think I could theoretically print the Author Pane manually in Panels with that theme function, but when I tried to do that, it wasn't recognizing the variables I was using ($node->uid). Is there any way I could do that?

Scyther’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev

I have now made a commit to the dev version that should fix this.

BenjaminRH could you test with 7.x-2.x-dev when it has been updated within 12 hours and see if it works for you. I got it to work with Panels 7.x-3.x-dev (2011-Sep-21).

BenjaminRH’s picture

Having successfully upgraded to Panels 7.x-3.x-dev and the latest dev version of this with the commit, it still doesn't seem to be working. Maybe it has something to do with not being able to access the node's user information when the panel is overriding the default display for a custom-content-type node? I know I've had other problems with modules finding the $node variable, although I'm using it now in a custom bit of php which works fine, so it should be there....

Scyther’s picture

What did you try? Custom PHP or to get the Author Pane pane into panels?

BenjaminRH’s picture

To get the Author Pane into panels (add content > miscellaneous > author pane). The custom php has nothing to do with any of that -- it's just deciding whether to display some text based on whether or not the page is flagged.

Scyther’s picture

You should use the Add content > Advanced Profile Kit > Author Pane and should be avalible if you uses the latest dev version (2011-Oct-11).

Michelle’s picture

@Scyther: I recommend changing the category on that. It was put into APK because, at the start, the purpose of the AP content pane was to be used in APK so it made sense. With APK not getting ported to D7 and with the use of Page Manager becoming more widespread than it was back then, the category is just going to cause confusion now.

Also should look to see if there is some place to change the admin title to make it clear which is the content pane and which is the block to avoid issues like this one.

Michelle

BenjaminRH’s picture

Oh. I'm very sorry, I definitely should have mentioned this in the beginning, but I'm using Drupal 7.8 -- I can't have the Advanced Profile Kit (I thought that's what the 7.x part of the version number meant? It was being used with Drupal 7?). So the problem is that I'm trying to put in a block? And if so, is there any way to have it available as a view pane or something?

EDIT: Oh, I see. There is no Advanced Profile Kit option available to me. The only place it's located is add content > miscellaneous > Author Pane

Michelle’s picture

APK is just the category it puts itself in. It has nothing to do with actually having APK installed. That's why I suggested he change the category since it doesn't make sense anymore. However, if you are not seeing that category, that's a problem. You don't need APK installed to see the category and you should have it if the content pane is working correctly.

Michelle

BenjaminRH’s picture

These are the only ones I can see (and I'm using Panels 7.x-3.x-dev): Activity, Custom blocks, Forms, Menus, Miscellaneous (which is the only place I can see Author Pane right now), Node, Node (tokens), Page elements, View panes, Views, and Widgets. Then below that I can see the New custom content and Existing node and Display suite content items.

Scyther’s picture

@Michelle - A other category seems good to put it in. Any sugestion? Maybe in 'User'.

@BenjaminRH - As Michelle said APK is not needed. But since Author Pane content pane is required a user, you might have to create a Relation to 'User from Node (on node.node_author)' under Contexts settings in your variant. If you want to display the node author, else you have to have a context to that user that you want to display.

Scyther’s picture

It seems that if a content pane is required a user, as in this case, you need to have a user context otherwise the content pane is not showing up in Add content.

BenjaminRH’s picture

Status: Active » Closed (works as designed)

YES! That worked a charm. After I added the relationship, I could see the APK category and Author Pane works just fine. Thank you very much for all your help. I didn't realize such a relationship was required.

Scyther’s picture

Issue tags: -7.x-2.x-beta-blocker

Greate that you got it to work!

Michelle’s picture

User sounds like a good category.

Michelle

IWasBornToWin’s picture

Not sure if ths is the right place to insert this, considering this issues is closed. I installed your module several hours ago and couldn't get the user to display in the panel. I read these instructions in the READ ME file;

CTools content pane:
If you have Page Manager (from CTools) installed, you can add the Author Pane content
pane to any page variant. It requires the user context. You can choose an imagecache
preset to use for the user picture. You can also use the "caller" field to give this
instance a unique ID that can be accessed from the preprocess functions and the template
file.

It may help to let developers know the bold line above means what this thread discussed. I tried to add context (not relationships). I also spent time trying to enable a lot of different panel pages, ie; user, node user, etc because I couldn't figure out where the "context" was. Once I found this issue, it solved my problem (by adding a relationship to user, not user context). Thanks

Michelle’s picture

Well, it's expecting that people using Page Manager know how to use it. That's not meant to be flip; I mean that literally. If I have to document how Page Manager works in the Author Pane docs, that's getting a bit nutty.

Michelle

IWasBornToWin’s picture

Then why document it at all? Or why not document it clearer? I'm not trying to be flip either, but there are two options when adding content;

1. Add content
2. Add relationships.

Your help file says "add content"
the correct way is to "add a relationship"

Maybe it's just me but that seems confusing.

IWasBornToWin’s picture

Sorry, I meant "contexts" not content.

Scyther’s picture

I don't remeber how Page Manager was in D6, but it can be that the README file has not been updated for D7. I know, as maintainer for the D7 version, that I don't have checked for faults or updated the README file yet. So there is a change that it can cointain faults like this.

Michelle’s picture

Because if I don't say your page has to have a user context on it to use Author Pane then I am neglecting a needed dependency. Defining a user context is out of scope. "Add a relationship" is one way to get a user context but not the only way.

Michelle

IWasBornToWin’s picture

Gotcha....makes sense. Thanks

Joachim Namyslo’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Closed (works as designed) » Active

I have the same problem here almost about 4 years later.

1. Seted up a test content type
2. added context user user of node in node.node_autor
3. added deverse/autor_pane in standard

Now panelizer showes the author pane area placeholder just as it should but if I try to preview it or even save it and go to the full node there is no author pane at all.

Did I something wrong here or is this still a bug?