By zumichu on
Sorry if this is explained somewhere, but I'm not sure how to look for this.
I want to allow the users to select what they see on the front page based on taxonomy terms. Anyone have a good way of doing this? I'm new to Drupal but I know PHP, SQL, etc.
Thanks.
Comments
+1 for knowing how to do this
this functionality would be very useful for many users
anyone know how it would best be achieved?
wellsy
orchidsonline.com.au
Taxonomy based front page
I've been thinking about this problem for a few days but I haven't had time to try it out yet. I just wanted to bounce this idea off of someone here if anyone has any input.
Basically I want links on the front page that would be Topic1, Topic2, Topic3, etc.
I could link those to a php script that sets a session variable for the topic chosen and redirect back to the front page. Now in the template files I can compare the session var against the node taxology terms (not sure how to do this yet), and decide whether to display it or not.
This sounds like a pretty straight forward and clean solution, but I'd like to hear what other people think about it since I'm new to drupal and probably don't relize this might screw up something or that there is a better way to do it.
Thanks. Any input would be aprieciated!
Views.module, maybe?
Hi,
I'm a novice here myself.. but...
IF you are using a drupal 4.7 version, I recommend taking a look at the Views module.
You can probably use this module much more creatively than I'm able to.
Perhaps you could use it to construct a taxonomy-based view page. (Then simply set that view page to be your default front page - in administer >> settings >> general settings.) I don't know how to tie these view pages to session info, but it's possible you could figure something out there.
Just some random notes:
* Exposed Filters (provided by the views.module) could offer users a taxonomy selection mechanism
* You can tie these page views to specific user roles, if that helps.
much simpler than I thought
It turns out just setting the links in the theme to "taxonomy/term/n" where 'n' is the taxonomy term the visitor wants the filter the front page by, is pretty much what I was looking for.
This doesn't affect blocks at all. I really would like it to, but it's not that big of a deal. I don't know if the views module would remedy that, but I am using 4.6 anyway.
Thanks for your help.