Active
Project:
Node Order
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Jun 2008 at 14:12 UTC
Updated:
15 Mar 2009 at 16:22 UTC
I have a Taxonomy Term page on which I am listing several types of Nodes, and using NodeOrder to order the Nodes. I would like to preset the Node Order by Node Type -- so that book pages always come first, followed by events, followed by Forum Topics.
I have just started to get in to Drupal development (have Web devt experience), I looked at the code for the Module but realize I have alot to learn. Can you give me any pointers or "how to's" to help me change the Module? How hard do you think this will be?
Any help is greatly appreciated.
Comments
Comment #1
marcp commentedWhat do you mean by "preset the Node Order?" Once the order is preset, can it be changed so that a Forum Topic gets moved above, say, the events?
Have you dug into the code yet?
Comment #2
ceo3141 commented>>>What do you mean by "preset the Node Order?"
Say my Vocabulary is Musical Composers; one Term is 'Beethoven'. When you go to the page that lists the Nodes for Beethoven, there is a 'Bio' node and then 'Works' nodes for each of his works. On every composer's Term page, I would always want the Bio node to be at the top.
Ideally, 'Bio' nodes would always be 1st; you could change the order of the Nodes with the 'Works' list, but the order of the node Types would be absolute. (For my purposes, it would be ok if you could reorder the nodes without regard to type, as I am the only admin, if that would be easier.)
I did briefly look at the module code. I am just getting into Drupal dev't (have Web devt experience), and can do simple things in Drupal. But to do what I would like, it seems that I would have to add much code. I'd have to retrieve the node types to list on the form, then write a function to order them, then change the display function, which given my current level of Drupal experience would likely lead to errors. It seems like a major re-write of the module. Am I wrong here? Do you think it is feasible?
Any help, comments, etc are greatly appreciated!
Comment #3
marcp commentedThis looks like a use case that would be pretty rare.
We could implement this as part of Nodeorder, but it might be better as a separate module. If it's going to be a separate module, we can probably give some pointers on how to get this done.