Implemented 'viewless' property for contenttypes. Fixes #2149