Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jhiggins on
I've been trying to figure out if there is a simple way to do this, it looks like the Taxonomy module is meant for this, but having a very hard time accomplishing this.
Basically, just want to create a Newsroom page that automatically lists the most recent items posted under that category. For example, if the user goes to "create content > page", can they then select "Newsroom" as a category, and then have a page at /newsroom/ update automatically with the date and title, and also update a block in the right sidebar with the same information?
Any assistance on this would be greatly appreciated.
Comments
You'll need Views
Servus.
I guess you should check the Views module -- it's basically a "list generator" for Drupal and you can set it to filter all articles having that taxonomy term applied and sort the result by date. There's also a number of nodes you want to include, and you can send the output to either a page or a block. The block can be sent to some screen region, and you're done.
Norbert
-- form follows function
Norbert
-- form follows function
Also check out PHP page snippets
You'll want to check these out as well:
PHP page snippets
http://drupal.org/node/23220
Display a list of (x) node titles of a specific type
http://drupal.org/node/24690
Or, create a new page with input format "PHP code" and paste in the following: