I have one content type as "refund", I want all number of node of this content type according to month wise, year wise and per day. I can get total number of nodes of refund content type by query but how to get sorted by month wise, year wise and per day wise and then show through views?

Please help me to solve this issue. Thanks in advance


1 Answer 1


I don't think you can change the node number (and I wouldn't reccomend it). This is a unique number used by Drupal.

You could set the content type to have a date field, and then use the auto path module to pull this data into the URL. This information would also then be usable by Views.

If you want to count the number of nodes of that content type then use Serial Field - that will also be accessible to URL alias and views. Details from its project page:

Unlike Drupal's built-in auto-increment node ID, which is global and shared by nodes belonging to all content types, serial fields are managed per content type (D6) / entity (D7). For example, the serial field of an Invoice instance will generate a unique sequential number (starting at 1, then 2, etc.) exclusively for Invoice instances.

The allocation of serial numbers by this module is atomic. In other words, the serial values are unique even when multiple instances of the same content type / entity are created simultaneously.

Brief explanation but can provide more step by step detail if you want.

  • I don't want to change node number I just want total number of nodes of particular content type sortable by month wise, year wise and per day wise then want to show through views Commented Apr 8, 2014 at 10:00
  • Then use the serial module above and use place a date field in the content type. The serial will count the number of of nodes of that content type, and then the date field will give your date values for sorting.
    – gdhp
    Commented Apr 8, 2014 at 10:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.