drupalfun.com
Panel-page doesn't seem to override profile
Hi,
I am having problems following the instructions on creating the panel page for the profile. I followed the instructions on page 32, set the path to /node/% but the panel doesn't seemed to override the profile page.
When I view the profile page it still displays the field I created on the content type "Profile" even thought the panel-page is already empty. I noticed this while I was creating the avatar views and it refused to display on the profile page, I then removed all of the contents from the Panel-page then view the profile page and there it was still displaying the fields from the Profile content type.
Shouldn't the profile page display blank if I removed all of the content from the Panel-page which is supposed to override it?
I don't know what am i doing wrong. I also tried changing the path /node/% to node/% but to no avail.
Related Questions
Responses
2. Hi Dorien
Hi Dorien,
I did admin/panels/panel-page/profile/edit/context then "Arguments: add Node ID", then on the "Edit Argument Node ID" I selected "Profile" for both "Node Types" and "Own Display" and then left other parameters as they are.
"6. Define a context: add the argument3 “node ID†(fig 4.6), select the
content type Profile (for content type and own display)."
If this is what you are pertaining to then yes I did that one. Though i couldn't find the part "select profile for content type" since on the interface it says "Node Type" so I assumed it is the same.
There is also a "Context" column besides from the "Argument" column in the admin/panels/panel-page/profile/edit/context but there were no instruction in the book on what to do with it.
I apologize if I sound completely ignorant, I am still on the drupal learning curve.
regards
3. It works when accessing node/1 directly
Hi,
It seems like when accessing the node directly by the URL (i.e. http://localhost/drupalfun/node/1) The panel does take over the display but when using the drupal "My Account" link it doesn't. I'm not sure if this is because the "My Account" link actually points to "user/1" and not to "node/1".
Is this the expected behavior or did I missed something? I had the impression that after going through the instruction the "My Account" display will be taken over by the panel.
regards
4. Hi, That's because the panel
Hi,
That's because the panel takes over the profile node, not the "my account" page. I just link to the profile from the "my account" page. If you would want it to take over the "my account" page as well, you'd need a panel with path user/% instead of node/%.
5. Thanks
Hi Dorien,
Thanks for the help and patience. It's all clear for me now.
regards
6. Help on how you resolved this
Hello I am in a similar situation in that My Account is taking over the panels view and I cannot see the Profile Panels as per the book. Can you please tell me what you did to resolve this. I am new to Drupal.
thanks
7. That's how it's supposed to be
Hi vishal,
from what i have understood, panels not taking over MyAccount page is the expected behaviour. later on in the book you will be intructed on how to add a link in your MyAccount page that points to the panel.
If you want to view the panel, before the part where you will create the link, you can try accessing the node directly (using url node/)
or
The latest version of panel have a default panel-pages that overrides the MyAccount page using users/%user as path. I tried this with the older version but it didnt work.
8. Excellent post - very
Excellent post - very interesting research642-825 I will look more into this! keep it up. I found very good and642-845 informative blog and have bookmarked your site for future reference. I really appreciate your way 642-436 of presenting such an excellent suggestion. I want more and i will come back here to see more updates in future E20-001 as well.my best wishes for you always so keep it up.regards


1. Hi, Did you add a context for
Hi,
Did you add a context for the content type profile to the panel?