Hi,
I've been using Drupal6 for about 2 months, mostly just trying to create some basic website. Now - for the first time - I'm setting up a more advanced site and I would like to ask for some help.

This is how my "work flow" should look like - each node will be in 2 categories - one industry related and one location related. So when I post a new node about the economy situation in Hon Kong, I should select from category 1 for example 'Financial sector' and from the second category I select 'Asia'.

Now to my question ;-)

Is there any module or possibility for the registered users to select which categories they are specially interested in and once they log in, only the nodes from the preferred categories would be present on their front page (of course with a possibility to display all other news as well)?

So what I would like to achieve is this - when I go to the front page as an anonymous user I see the 10 very latest news; once I log in and get back to the front page I would only see the 10 latest news from the categories that are checked somewhere in my profile.

Could you please give me any idea which modules should I try or what should be the first thing to do? I couldn't find any useful info so far.

Thanks for any help.
Gabriel

Comments

scottatdrake’s picture

My first reaction is that looking into the Rules module (documentation) may get you a step in the right direction. I'm not entirely sure how, but it may do what you are looking for.

WorldFallz’s picture

One simple way of doing it would be to set up one or more block views with exposed filters and check the "remember" option (which will remember the users' filter settings).

Another way would be to add a profile field for the users to select their desired categories and then use that as an argument to a view that lists content belonging to those categories.

chumoka’s picture

thanks a lot for your quick help, I've had a look at the Rules module but I'm not really sure if it could solve my problem. I'd already tried to play around with the Views before but couldn't figure out any useful workflow either. Anyway, I'll keep trying. Any other advices are still welcome. Thanks

I have now created the desired categories using the core Taxonomy functionality (I thought I had to look for some extra module for this one, but luckily not). Now still the main issue - how users should check the preferences in their profile and how to filter the front page nodes accordingly?

WorldFallz’s picture

If you want people to be able to select more than one category, I think you'll have to use content_profile to add a multiselect cck field to the profile (the options should match the taxonomy categories) or use the content_taxonomy module to add that taxonomy to the profile. Then, as I said above, you would use views to create a block view for the news items that takes an argument for the field that you set up for users to select their categories.

Alternatively, you might be able to use the http://drupal.org/project/user_terms module -- but i've never tried it, so i'm not sure.

chumoka’s picture

Hi WorldFallz, thanks for your help... I have already added the taxonomy to the profile, users can select the preferred value, but one thing I can't figure out is the Arguments in the Views section - what kind of arguments should I create to be able to achive my goal? So I would like to filter all the nodes, based on the categories (taxonomy), compared to the categories in the user profile? thanks

WorldFallz’s picture

You need to use whatever field you added to the profiles for the categories as the argument to views.

chrisbloomfield’s picture

Hi Chumoka - I'm trying to set up a system similar to the one you describe, with the user having taxonomy filtering preferences in their profile that they can use automatically whenever they log into the site. I've had a few ideas so far but nothing's worked 100% the way I want it to. Did you have any success with this in the end? And if so would you be able to offer any tips?

Thanks, Chris