i make countries field in registration form.
and
i make categories of the nodes like that ( structure>>taxonomy>> terms ) (terms = countries)

what i want is : when a user choose "Canada" in his profile field, his nodes will displays in "Canada" term

and when a user choose "United States" in his profile field, his nodes will displays in "United States" term

i installed the "rules module" , but i don't know how tu use "views rules" , it's little complicated

help plz

Thanks in advance

Comments

boban_dj’s picture

Hi,
I am not sure if you will need other functionality, and what exacly you are trying to build.

If you can explain more about what you want to build, as a datastructure.
I mean, the users are they users of Drupal cms or will they be just the data for some content type.
I hope you understand what I mean. Then i could point you to a better direction what to do or what modules to use.

In the module Views you can do most of the referals with content and content types, as long as you know what you want to build.
I think rules is not yet what you are looking for.

In Views you can filter the data according to some criteria you set, so if the users have a profile you can filter them by any criteria in that profile for example.
But again, I am not sure how to set it up if you don't explain more about what you need as a result.

Boban_dj

JoeyRoth’s picture

hi Boban_dj

simply what i want is : when a new user choose "Canada" in his profile field on the registration page, his futur articles will displays in "Canada" categorie

somebody told that : "Sounds like something the rules module would take care of, incorporating views rules into a view you should be able to show only the relevant pages in that view."

i don't know if really i need it or not

boban_dj’s picture

Yes with Views you make data show up on different ways in your content types.
But for user managment you could look at Organic groups modules:
https://www.drupal.org/project/og

In drupal core itself:
If you make a view you can manage the permissions and give certain user the right to see the published view, or their own published content.

In drupal there are several ways to manage users, their roles and permissions. Also there are several ways to publish and manage content.
With blocks, views and with modules like panels.
If you goto admin/people/permissions/roles you see you can add your own roles and give them certain permissions, also if you make a contentype or view you can grant them access just to that view or content.
You have to grant them, if you want an automated way to grant them, this needs more study.
As you see thinking about the datastructure is not so easy, but will be worthwhile for to use drupal to the max.

Again, when you decide what the users will do an can do and then you categorize this.
Make the right content types with the right flags or profiles.
Drupal can do a lot but you have to make what your needs are.
So again, if you just want one thing like this, look around for a good drupal views tutorial online.
here you can read more about roles/user permissions:
http://www.drupalscience.org/node/13

Brian Lewis has some nice explanation on the organic groups, some previews on his youtube channel, but on his site you have to be a member:
https://www.youtube.com/user/ModulesUnraveled/videos

goodluck

Boban_dj

JoeyRoth’s picture

ok i will see, thanks all of you