drupalfun.com
Panels 3 implementation - Idiot's Guide?
It had to happen, I have been seduced by all the talk of Panels 3. Judging from the forum, I can see it has raised a lot of issues and confusion.
Does anyone have an idiot's guide or a step by step guide to implementing Panels 3 using the site build example outlined in Dorien's e-book (specifically pages 32 - 38; which uses Panels 2) ?
Related Questions
Responses
2. Good question, sweetjames.
I'm stuck in the same spot and now I find that I can't access modules at all.
Hours of work and I'm stopped dead in my tracks.
3. ?
whats the matter guys? would you mind to tell exactly what the problem is? because i never had problems with panels 2 or 3, the only thing ive noticed is that some text strings have changed , i mean from the book to drupal, but everything else is fine, so please explain yourself and maybe we can find a solution.
4. Basically, some of us are
Basically, some of us are using the Panels module for the very first time and it so happens that we are using Panels 3, which happens to be radically different from Panels 2 as described in the book - in terms of its user interafce and in some cases terminology used. This makes it very awkward to follow the book especially for non drupal experts such as myself.
So we were kind of wondering if anyone had a step by step guide of Panels 3 being implemented obviously using the examples described in the book as a point of reference.
I have managed to accomplish some of the tasks outlined in the book through a combination of sheer luck, spare time, trial and error but I was kinda of hoping for a basic implementation guide.
5. i see
well ive learned to use panels in the same way you did , trial and error, but as far as i can see the only thing that changes is the way you override the pages. The book says that we have to create a panel page to take over profiles but that changed in panels 3 because now it has the option to use "Handlers" to take over node pages like our profile page, you will notice that its even more easy now to make this changes because you dont really need to set the arguments so makes our lives simpler. So if you're using panels 3 what you have to do is:
-go to panels dashboard or panels list and on "Or customize a system page..." select "Node View".
-it takes us to this "Node View" page where , its supposed to be blank if you havent added a handler yet, we should click the dropdown button, select panel then click the "Add New Handler" Button.
-First Thing we have to set is the "Selection rules". This is going to tell our panel what is he going to override.
-we click the dropdown menu and select "Node Type", Add and when popup shows we must select the content type that we are going to take over.
-We Click on Save and then Continue
-Now Choose our layout, i like flexible layout but sometimes gets too messy =P.
-And Finally we add our Content to the panel and thats it , that basically how you take over a content type using panels 3, so we leave the "Add Custom Page" and "Add Panel Page" options alone and i only use them to make custom pages with custom layouts.
we dont need to worry about arguments because if you check the handler you have created it you automatically add the NodeID context and AuthorID.
so this is how i make panels , i might be wrong , but it worked for me and never had issues with that xD
i hope this helps a lil
6. Thanks xdemianx, Ill try your
Thanks xdemianx, Ill try your suggetion, honestly for a newbie like me, its very confusing as the other said before.
Another question, in section 4.3.3 Creating the Avatar view, I cant find a panel pane display, but theres a content pane, is it the same? Please advice me guys. Thank you very much
7. Its the same
It is the same, names changed within versions but its the same kind of view, anyway theres a new update for panels and ctools and they changed the way you administer this module but its basically the same old process
8. Go back to Panels 2 - I take it back.
Even if you have been using Drupal for a few years, there are a few bugs still in Panels 3. I had to go back to 2 until fall 2009.
-----------
Scratch that. Now the user interface has improved a lot. I'm on Panels 3-beta4.
9. I can't find the Node view...
I can't find the Node view... I see only this:
http://kepfeltoltes.hu/view/090723/7630302321_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090723/2498343152_www.kepfeltoltes.hu_.jpg
10. Line 2 on your screenshot
Line 2 on your screenshot says "node_view"...
11. thats right, but after when I
thats right, but after when I chosse the edit (the second screenshot), how can I add a handler? I can't do this:
Operations -> add handler
- add a handler for each node type
12. Add a handler for profile.
Add a handler for profile.
14. Version
Wich Version of Panels and Ctools Are you Using?
------------------------------------------------------------
nvm, i saw your screenshots, for the newest versions of panels and ctools it is now called "Variant" , so you have to add a Variant wich is the same than a Handler
15. panels: 6.x-3.0-rc1 ctools:
panels: 6.x-3.0-rc1
ctools: 6.x-1.0-beta4
16. I did
I did this:
.../admin/build/pages -> node_view -> edit
http://kepfeltoltes.hu/view/090723/2498343152_www.kepfeltoltes.hu_.jpg
-> add variant -> title: profile variant type: panel features: Selection rules -> add variant
http://kepfeltoltes.hu/view/090724/10163487951_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/9759154192_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/2106853293_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/6423828814_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/56022825_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/7040681636_www.kepfeltoltes.hu_.jpg
http://kepfeltoltes.hu/view/090724/1997279977_www.kepfeltoltes.hu_.jpg
17. One Thing
When you Selected wich content type were you going to add for that variant, you've selected them all... so you are going to take over all your content types... if you want it that way ok but it thought you wanted to take over Profile only...
Everything else seems to be ok
19. Panels not replacing the profile
Hey all
I'm running panels: 6.x-3.0-rc1 and CTools 6.x.1.0-rc1. Like a lot of people here I got stuck on page 32 of Dorien's book. But thanks to all of you who have commented, I have now found and set-up the node-view and added the variant so that the Selection rule reads:
This panel will be selected if Node being viewed is type "profile".
All seems good until I go to my profile and see the same old boring profile page I had before. The Panels hasn't replaced anything.
I have also enabled the content as per Dorien's book; but even if I take that out, it still shows the original profile, not the blank page the book tells me to see.
Please can someone guide me as to where I'm going wrong? I am a Drupal newbie so please be gentle...if I need to enable a module etc. please can you direct me there clearly?
Thanks everyone
Rob
20. User_View not Node_View
Hey all
Quick update to my previous post - I managed to make it work by using "user_view" instead of "node_view".
Happy days!
Though please can you let me know if this is what I should be doing or am I going to run into trouble later? (gotta go to bed now!)
Cheers
Rob
21. Both Ways...
Both ways seems to be ok, i personally never tried using the user page view so i dont know if that has any consecuences but i havent heard of them either, but just to make it clear about if your doing it right or wrong, doriens book says that we should take over an additional node content type because we can use the user% view as a "preview" of all our profile tools like notifications , facebook style statuses, subscriptions and so, also it give us a way to add teasers and this profile button wich is also very helpfull once you add the gmap module wich lets you search users on gmap and shows this button with direct link to that user profile. i dont know but in my opinion its better this way. anyway depends on what you looking for =)
22. Back to panels not replacing profiles
Hi xdemianx
Thanks for your feedback. I feel I should use the node/view one as it will flow better with the other points you mentioned. However, I'm still stuck with having the panel replace the profile page.
At the moment, when I navigate to "My Account", I am linked to a "View" tab that shows the Profile information I enter and the "History" underneath. These are the steps I took to get where I am; please can you see where I went wrong?
1. Administer>content management>content type>profile:
a. I followed "automatic title generation" as per book
b. I entered the word "profile" in both "Name" and "Type".
c. Under the tab "Content Profile" I selected:
i. "Display the content's teaser"
ii. "Show a link to the content profile..."
iii. "Show a tab at the user's page"
iv. "Use on registration"
v. "Hide Form fields" > "Avatar". (I did this as I could not see any other way of making the Avatar "invisible" as per the book.)
2. Administer>site building>panels>panel page>list:
a. I enabled the System, Node View which consists of the path /node/%node.
b. I "added a variant" and named it "Profile". (I did not change anything else on this page)
c. Under "Selection Rules" I added "Node:type" and selected only "profile".
Then I saved and updated everything.
Now at this stage I should hope to see that the profile is blank when I navigate to it under "My Account". But it's still showing.
Even if I now try to add content to the panel, nothing changes. Please can you tell me where I have gone wrong?
Thanks
Rob
23. I See...
Well ive added some steps that seems you have missed:
1. Administer>content management>content type>profile:
a. I followed "automatic title generation" as per book
b. I entered the word "profile" in both "Name" and "Type".
b1. at the bottom, under Content Profile select:
"Use this content type as a content profile for users"
c. Under the tab "Content Profile" I selected:
i. "Display the content's teaser"
ii. "Show a link to the content profile..."
iii. "Show a tab at the user's page"
iv. "Use on registration"
v. "Hide Form fields" > "Avatar". (I did this as I could not see any other way of making the Avatar "invisible" as per the book.)<--- this option lets users add an avatar upon registration, if you want to "Hide" avatar you should try setting it under "display fields" tabs.
2. Administer>site building>panels>panel page>list:
a. I enabled the System, Node View which consists of the path /node/%node.
b. I "added a variant" and named it "Profile". (I did not change anything else on this page) <--- it will show two checkboxes , enable both.
c. Under "Selection Rules" I added "Node:type" and selected only "profile".
Now Everything at this point should be ok, by now you should be able to see a blank page on your profile, the thing is... profile is not under My Account, as i said before and as doriens book is meant to be, your profile wont show under my account page because thats not our node, thats the user% node. Our profile, as we created it , will ONLY show its teaser under My account, as you can see HERE (green thing in there is my "click to see my profile button" of course its not the final version xD) so if you click there you should be able to see your profile.
If you want to see a blank page under my account then use the user_view panel to do this.
24. Same thing for me...
Hi,
i'm a drupal newbie and my english is not so good (sry).
I had the same problems to overwrite the standard profile page and followed the little tutorial of xdemianx. (thx for that)
It seems to be a little tricky to overwrite the userprofile with the System Node View. It won't overwrite the page with the URL "/user/uid". BUT it shows my "panel-made"-profile when I call the URL "node/nid". And I think this is what it should do, should'nt it?
By creating a Variant it seems that the selection rule was not saved. I had to create the selection rule again, after I saved the Variant. I also had to enable the Variant - not only the Node View.
Now I think I should tell Drupal to call the profile site not with the URL "user/uid", but to call it with "node/nid"?
Well I try to follow the book again and I will see what will happen...
greetings
25. With the first RC just
With the first RC just release from Panels 3, I can start thinking about updating the ebook.
27. The book now uses node/%,
The book now uses node/%, node-view is just a different name for that, the rest stays the same.
Using User-view (or equivalent user/%) has big reprecussions, I don't recommend this. A lot of things are going to be different. Well, your myaccount page will seise to exist for one thing (it will be replaced by your panel). Argument code for views and panes will be slightly different,... etc
28. mh...
I see, I have to use "node-view" for creating the user profile.
But I still have the problem that it won't overwrite my standard profile page. Furthermore it won't overwrite the standard registration page.
Why does my "selection rule" in my Panel Variant not work?
How can I tell drupal to use the node-, instead the user-path.
EDIT:
When I choose "show link to user-profile" in the content-profile it works. I get the link to the profile view. When I choose "show full content" I see the content of my profile, but not as I placed it in my panel...
Well I'll try on...
29. Hasn't worked for me
I tried everything as said but the button I created when it is clicked it doesn't display the profile page modified by the panels module, this is an upgrade for me as I was using panels 2 before. I am now using rc1 for both panels and ctools. What I see is the profile without any modification. located at (http://localhost/content/abeaudrian) abeaudrian is the username.
Please advise what else I can try. It is a pity a thorough step by step approach is not available for the latest release of these modules- rc1, since the latest release is what is recommended.
Regards
Adrian
30. The latest release (which is
The latest release (which is only the first release candidate) was like 4 days ago... give me a minute :-)
Are you using the node-view
What is inside your panel page?
Do you have screenshot of your panels configuration page, if you have, post a link here.
31. Making sure you saw this- Panels Configuration Screenshots
Hi Dorien
I just read again what I sent and you are right for asking for a minute lol :). I am just looking forward to getting this challenge solved sorry for being so hasty. ;)
The screenshot links are below.
http://a2z-caribbean.com/panels/dashboard.jpg
http://a2z-caribbean.com/panels/pageslist.jpg
http://a2z-caribbean.com/panels/nodetemplate.jpg
http://a2z-caribbean.com/panels/nodeprofile.jpg
http://a2z-caribbean.com/panels/selectionrules.jpg
http://a2z-caribbean.com/panels/context.jpg
http://a2z-caribbean.com/panels/content.jpg
http://a2z-caribbean.com/panels/profile.jpg
I was really glad when I realised that the same person who wrote views wrote panels and that a release candidate is finally out and he commented on the project page that it is working well.
Anyway I am looking forward to getting the profile tidied up, so I can develop the rest of my site. Thanks for your help.
I await your reply
Regards
Adrian
32. Thanks for all your help and
Thanks for all your help and comments. I'm still stuck and can't work out why. I've undone everything and I think I've narrowed down the problem to the content profile node. Under the "User Page Display Style" the "don't display..", "display it as a link..." and the "display the full content" options all work but the teaser mode doesn't.
I'm using the content profile "content_profile-6.x-1.0-beta4". Is anyone else using this and had the same problem?
Also, is there anyway that I can check the PHP code to make sure that when the teaser mode is selected it's calling the right content?
And finally, if not, can I use the "link" tab instead and amend the link that appears and make that a button?
Thanks again for all your help guys - I'm really looking forward to getting over this step and on to the next one!
Rob
33. You can check teasers on the
You can check teasers on the taxonomy pages, if they are not already taken over my the taxonomy view (or if you disable that for a minute)
35. :-) Not too much, since I
:-) Not too much, since I live in Belgium. I have decided to take on a second edition, so hold on to your seats!
36. Hmm
I knew you were Belgian , but I thought I read somewhere you had a teaching job in the US, but I guess that's history ;)
Not wanting to put any more pressure on you , but when you think will you have the Update ready ?
I'd love to know , cause I need to decide if I'm gonna wait for it , or if I'm taking another route cause I need to get the job done ...
thanx for all the hard work,
Wolfie
37. :-) I was lecturing in
:-) I was lecturing in Switzerland. By this weekend I might have an estimate of the 'release' for the second edition.
38. RE: The latest release (which is
Hi Dorien
I just read again what I sent and you are right for asking for a minute lol :). I am just looking forward to getting this challenge solved sorry for being so hasty. ;)
The screenshot links are below.
http://a2z-caribbean.com/panels/dashboard.jpg
http://a2z-caribbean.com/panels/pageslist.jpg
http://a2z-caribbean.com/panels/nodetemplate.jpg
http://a2z-caribbean.com/panels/nodeprofile.jpg
http://a2z-caribbean.com/panels/selectionrules.jpg
http://a2z-caribbean.com/panels/context.jpg
http://a2z-caribbean.com/panels/content.jpg
http://a2z-caribbean.com/panels/profile.jpg
I was really glad when I realised that the same person who wrote views wrote panels and that a release candidate is finally out and he commented on the project page that it is working well.
Anyway I am looking forward to getting the profile tidied up, so I can develop the rest of my site. Thanks for your help.
I await your reply
Regards
Adrian
39. @Abeaudrian got exact same setup and not working either
Abeudrian,
Judging by your screenshots , I've got the exact same setup as you.
Only thing that I have different is that I didn't touch the user_view ... I only edited the node_view in /admin/build/pages
profile page is not being taken over either.
this videotut might be of interest too : https://webadmin.unt.edu/wiki/set-faculty-and-staff-profiles-page-drupal
edit (1 hour later) //
I got the user/% page pimped !
so now, when I surf to drupal/user/1 I get the pimped Panels3 version as in here : screenshot
40. I hope this can be figured out soon
Hi Wolfie
Thanks for the video, just watched it. You should check out http://drupal.org/open-atrium, it seems really cool, but think I will wait until they at least get a release candidate before I start building on it. As I don't need to realize any further challenges or get further set backs.
If you make further progress be sure to share, I will if I do.
Regards
Adrian
41. this is what I got now
some more tweaking and fiddling around got me to this point >> http://i707.photobucket.com/albums/ww76/belgianwolfie/1-08-20090-34-45.jpg
this is not styled yet , as you 'll see, but I got some functionality in there ...
42. Hi Wolfie
You edited the user_view as oppose to the node_view to get the panel to over take the page content. I got that before as well, but the panel display only shows correct on the my account page and not when you click the link to view the profile, if my assumption is correct.
Is this so?
Regards
Adrian
43. seems I'm not able to pass the arguments to the view ...
As the subject states, my /user/%argument is not picked up from the URL by the panel / view ...
To see what my settings are and what goes wrong I added a handy schematic overview ...
Dorien or Adrian (or anyone) , could you take a look and tell me where I go wrong ?
http://i707.photobucket.com/albums/ww76/belgianwolfie/drupal_panels.jpg
44. Hi Wolfie
I have actually changed my choice of layout, I have opted to use the quicktabs module, what I have done is to create a new panel page, and put a quicktab, with the various tabbed content inside of the panel pane, similar to facebook.
It works well, I created a view for the Avitar and placed it in a block, then I promoted the block to one of my side bars and made visible on the specific page on which I placed the profile view. Two notes on panels it does not yet support ajax, so do not use ajax to display the content in either Views or Quicktab.
The new panel page will also allow you to promote the created profile to the menu.
I can send a screen shot if you like..
Regards
Adrian
45. Further Panels display problem
The 'preview' of the panel design pane doesnt work properly as yet, realised this after trial and error, so it would be best if you can, to view your additions after updating the content, within the 'content' section of the panel pane. Or after actually promoting it to its own menu / page.
Regards
Adrian
46. ok Adrian
Appreciate you takin another approach to the profile page, must say that I look over to Facebook more than once while designing my own site.
Just want the user to feel at ease and familiar with the UI when they first come to my site. I just don't have 30 headed useability expert staff that can work out a smooth user interface for me :)
Would you just be so kind tho as to show me how on earth I can pass variables to a View inside a Panels 3 panel ? Just don't seem to be able to do that :(
47. Please find conversion guide
Please find conversion guide to the latest Panels 3.2 here:
http://drupalfun.com/content/converting-panels-3
48. Panel issues.....Check thing out!
The guy at the link below has an outline of creating a frontpage using Panels 3.....it really helped me out in understanding the concept using Panels 3.
http://drupal.org/node/206792


1. At the moment, the only thing
At the moment, the only thing I can offer you is: http://drupalfun.com/content/converting-panels-3