Download & Extend

Provide a token for Nodeorder's weight

Project:nodeorder
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Any enthusiasm for a Token hook to be added, say something like [node-order], for use in the usual suspects like Pathauto's alias generation?

Could have done with that recently and just used a hack in a snippet to pull it directly from the term_node table.

I'd be willing to submit a patch myself if there's an audience.

Comments

#1

Please submit a patch -- if this was useful for you, then I suspect it'll be useful for someone else.

#2

Yes, there is an audience :-).

Although I would think that for Pathauto to work, the replacement of taxonomy/term/% with nodeorder/term/% could be sufficient, so you get this “replacement-scheme”:

custom/url –> taxonomy/term/% –> nodeorder/term/%

Is this useful enough to make this a seperate issue?

#3

this module indirectly provides pathauto functionality by

  1. changing module ownership of the vocab when it is enabled to be orderable
  2. implementing hook_term_path()

When taxonomy pathauto is run it will determine the term's paths as:
source: "nodeorder/term/[tid]"
alias: "custom/pathauto/url"

If you aren't seeing this, try deleting all taxonomy aliases and running a bulk update.