I have a custom database table my_apps.

This table has nid and uid columns.

I have created a view, which is displaying some nodes. I want to sort this view from that custom table.

Like ORDER BY COUNT(uid from my_apps) where nid={nid from my_apps}

Is this possible?

I tried this module Views custom table but then you have to create the view based on that table instead of a content view. And I don't want that.

  • Probably to create a custom field for views (you can create your own field to be used within views). Have a google for that, there are lots of examples out there Commented Jan 27, 2023 at 10:09
  • Can you share a link please?
    – Ahmad
    Commented Jan 30, 2023 at 6:30


Your Answer

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

Browse other questions tagged or ask your own question.