Creating Drupal 6 reverse order node by code on first page
I'm trying to get Drupal 6 to reverse the order in which nodes appear on the master page. I pretty much use "Story" as my blog engine and it has done a good job of doing the job so far. It annoys me a little, though, in that the nodes are listed in reverse chronological order. I mean if you want to display multiple node previews on the same page this is the way to go. In my case, I want to display one complete post on the main page and be its last item in the list (and by extension, the pager action). I think this works a little intuitively, since the "first" link should actually point to the first blog post.
While I was able to edit "node.module" to show the items in chronological order, the pager behaves the same way. I can't seem to figure out how to make the default page "last".
Any pointers or ideas are greatly appreciated.
a source to share
There are many ways in Drupal to solve any given problem, but there are usually one or two that are "best". With Drupal, "best" usually refers to either elegance or convention.
In this case, it is a little bit of both. What you want, not modify node.module, is to customize Views. Views are a module that will allow you to filter, sort and organize not only what appears on the first page of your Drupal site, but basically everywhere else.
Run the rabbit hole by reading this discrepancy:
And then remember the following. With Drupal, you will get the best results by looking for solutions that do not involve changing any "core modules" - files in the / modules folder. It is best to leave these files alone because they are frequently updated with security and Drupal feature updates, and you do not want to be manually replicated 12 times for each release lifecycle.
Instead, you'll often find that a contributed or custom module will do the trick. And there are many ways to manipulate content through preprocessor functions that you can use Google.
I wish you the best of luck on your adventure. It can be discouraging at first, but if you keep working with the system for a while it will pay off in a long time.
a source to share