Display all taxonomy terms's ids associated with nodes in a view I need to display the term ids of each node under its title in a view.

I can do similar display by adding node: title and node: all taxonomy terms. But I just want to display tid's instead of term names.

My view result should look like this:

title: Node title 1

tids: 1, 2, 4

title: Node title 2

tids: 3, 5, 6

Is there a way to alter or add a views field for this?

Also in general, how are fields that is available to the views constructed?
Add field "All taxonomy terms". Then check the "rewrite output of this field" box, and in the rewrite box enter the token [term_node_tid-tid].