Posted by trel on July 4, 2009 at 5:16am
I'm new to Drupal and was wondering how to go about creating a page with content similar to the main page, except that it only contains stories attached to a specific taxonomy code. All the documentation and search results I've come across don't cover dynamic content and expect me to be satisfied writing an "About Us" page.
Comments
What you are asking is easier to control in Views
Taxonomy is a great science. However the power of CCK and Views will set you free. You must not be searching in the right places.
The best free resource for my money is www.planetdrupal.tv. It's a site with a great catalogue of tutorials from around the Drupal globe. This community has a tremendous support side that once you begin to grasp Drupal will become invaluable.
Check out Sean Effel's CCK & Views tutorial at www.drupaltherapy.com or Rob's tutorials at www.mustardseedmedia.com. They are great places to start.
Thank you.
You, sir, are an amazing person.
I've started to get the hang of this, but it seems that I have to rebuild all the CSS in order to make it readable. This makes me rather uncomfortable, because I'm afraid that there's some automated process that either makes this a five minute job or accidentally overwrites my work.
Views should do what you want
If I understand you correctly, you want a page with the same nodes as the front page, but filtered to only contain nodes with a specific taxonomy term. If so, this is not hard to do with views.
Create a view with a filter where "Node: Promoted to front page" and "Taxonomy Term" are ticked. In the next screen specify that "Promoted to front page" should be "yes", and in the subsequent screens specify the vocabulary and the terms that apply.
Groen
But the CSS!
No, I got it working rather nice the way I want it. I was just curious if it were possible to build a view using automatic CSS class assignment. So far I'm getting along fine rebuilding the CSS around the field output, but I feel like it's somewhat of a patchwork solution.
Bump.
I cloned the default "Frontpage" view and changed the filter criteria. It works, but I don't understand what's necessarily working. It says the view doesn't use Fields.
Done and done.
Where are you stuck
Hi Trel,
I am not really sure what your problem is. Especially not what problems you have with CSS.
I understand your trying to get a page similar to the front page. You are using Views to accomplish this. You have used "Clone View" to clone the default front page view and set up a filter. (Keep in mind that the default front page view is a view that emulates the default front page. It is not the front page itself, which is built into Drupal, whereas Views is an optional module.)
The remark "The style selected does not utilize fields" tells you that there is no need to configure fields for the present format of your view. This is not an error, just a reminder that there is no use setting up anything under Fields. Once you select a different way of formatting for your view, you might have to select fields, for example if you change "Style" under "Basic Settings" to "Table", or when leaving "Style" at "unformatted" but switching "Row Style" to "Fields". The "Fields" setting then allows you to select what fields should be shown.
I hope this gets you closer to what you attempt to accomplish.
Groen