I'm trying to build a page on my website containing a view which will display differently depending on whether it's viewed on desktop, mobile, et cetera. The idea is that the desktop view will show more content as there is a greater amount of space to play with.

I have found the following article: http://www.whenwhowhere.com/tech-blog/load-content-depending-device-usin... which seems to do what I want, but I'm at a loss as to where to put all the various bits of code. I assumed it was a custom module, but there's no .info file mentioned or any place to put the content load and callback.

If anyone has any pointers as to where I might find a more comprehensive solution or any suggestion as to where I'm going wrong that would be great.



I've been pointed towards the context mobile detect module which has solved my problem.

I can now create views and blocks, then specify which devices can see them using context.