drupalfun.com
Separate node for profile and photogallery for permission to view sepately
I would like to spawn a page or a tab on registration (like profile) but one that contains the non-account related content (like photogallery) so that the page can be password protected (I'm using protected node module password protection) without shutting off access to the social stuff of the profile (user name, location, relationships, etc.)
it would be nice if the node spawned was available with a link or a button from the profile page
Related Questions
Responses
2. spawn
When a person creates a new acccount, an account page is spawned and they enter their location and all of that personal information. The profile page when it accessed with the "my profile button" has that information but it also shows the empty text of the views of the photogallery, audio files and so forth.
So the person then can start adding photo's, etc. I've got that set up on www.storymyne.com - log in as guest, password guest, click on My story
The problem I have is that when I create other content (e.g photo album), and password protect it, it shuts down the entire profile page, so that the other fields on the profile page aren't accessible.
So I was thinking that if rather than having the empty text shown, another page could be automatically "spawned" like the initial account page, when the person created their account, then it could be accessed by a link from the profile page, and so wouldn't affect the permission to view the persons other information (name, picture, email, etc.
My aim I guess is to spit out the profile page you create (per the book) in half, and make it that it would be as if there were one page for the personal information that everyone could view, and another for the other stuff that could be hidden by the user if they wished.
Thanks
3. Hi, There are indeed multiple
Hi,
There are indeed multiple solutions:
- create a seperate node for both the photo gallery and the node profile.
- if you like to set up the photo gallery as fields of the node profile (as I believe you have it now).... you can use content permissions or field permissions (http://drupal.org/project/field_permissions) to restrict the access to the fields.
Would that solve it for you?
4. Hi, I think your "create a
Hi, I think your "create a separate node for both the photo gallery and the node profile" option is the one I need.
I've got the content access module and I installed the field permissions module and played around with it and I can limit access for a particular node, by role and that's not bad, but what I really need is to be able to allow access to the content (galleries, stories, etc by password)
I've got the protected node module enabled which is great and does allows for password protection by node.
The problem is when I password protect the photogallery for example, that password protection is inherited by the profile page, so a person needs the the password to see any of the other profile information.
And as I stated before, I need to keep the other the stuff visible.
I'm not sure how to do this, or if it's possible but what I was thinking was that if there were a way to generate a node like the profile page, but with just the views of the panel pages of the photo and video and other galleries on it
And if that other node was accessible from the profile page (e.g. with a button like the "my profile" button on the front page,) then the password protection would not be inherited by the profile page and that would do it.
The hard part for me, and what I'm struggling with, is how to have that other node (with the galleries and other content0 created as a content profile type page (like the profile page) when the person creates their account, or alterntively, an easy way for some one to create it when they first visit their profile page. I just don't know how to go about doing that.
Thanks
5. Why don't you create a panel
Why don't you create a panel page, with an argument, say node ID, (only for type = profile), and path: profilles/% or something
This panel page will work in kind of the same way as the profile panel page. Only, it will not use the system node view, so Drupal will not think it is displaying a profile node. It will just pass the argument to the different views that are being displayed...
6. yes, I think that's it I
yes, I think that's it
I created a panel page with
path profiles/%node
argument node ID is type profile
Selected a panel and added the photogallery view (same as from profile page) to the content
I think I"m just about there. but now this is the problem i've got.
I don't know how to access that page. It's probably basic but I've tried to preview it with a bunch of different paths and I don't don't get anything. I'm stuck.
Thanks for your help.
7. Got it. It works iike a charm.
Hey Dorien,
I modified your "my profile" button block code to point to profiles/%node and put it on the profile page, to point to the new one, and it works. It works well. I can now password protect the content on that page without it affecting the other one.
I removed the content from the original profile panel and put it on this new and tested it out and I can still access the profile page social stuff.
So that's great, and I am grateful. This has been bugging me for a while now.
Thank you so very much for your help.
8. I am glad I could help! And
I am glad I could help! And thank you for your donation!


1. What exactly do you mean with
What exactly do you mean with 'spawn'.
Could you be a little more clear on what you are trying to do?
Thanks!