How to add a view function to a simple query

I have a simple query which will query all the pages for a particular tag. I also try to get another property of the page (something like a summary) which extends beyond the normal width. I would like to add a view function similar to this example.