0

I have a challenging task of making an HTML List into a View within Drupal.

The original list is alphabetical EXCEPT for the first 40 entries which are organized essentially in chronological order as well as most popular items on top.

I believe i took care of the most popular items (5 of them) buy utilizing the sticky option within Drupal.

The next 35 items... 30 of them need to be organized by the release date, in this case a "special event #" in the node title is what is used to signify its chronological order.

Example:

 Cool Party - Special Event 1
 Fun Shindig - Special Event 2
 Quiet Gathering - Special Event 3
 Funny Picnic - Special Event 4 

I want to know how i can sort the list within Views to get the special event listings in order from 1-30 at the top of my list (just after the sticky top 5)

1 Answer 1

1

You are able to create a single block or page in views with different sort criteria using attachments in views

enter image description here

  • So create a view with some criteria and add an attachment like above and override the sort criteria as you need

  • Then add your attachment to your page or block as below

enter image description here

Here is a post which explains this in detail.

4
  • I should be clear i am using a Views Table for this. Will your solution still work when using tables?
    – Anon Ymous
    Nov 18, 2014 at 6:29
  • Yes changing the format doesn't affect things Nov 18, 2014 at 6:31
  • Is there a way to wrap it all so it looks like one table instead of two?
    – Anon Ymous
    Nov 18, 2014 at 6:33
  • Adding an attachment and removing its title make it look like a single page.. pls jump in and try it.. It might give you some idea.. Nov 18, 2014 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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