Why is this implemented as is? I would think the same could be achieved by configuring the view appropriately. If not then a comment explaining would be good.

Also: I wonder why this code and the view is placed in `ding_frontend`. It seems out of place. I would consider places like `ding_content` instead.