Browser views with minor variations..but with only one template and one browser view class?

We have project where the user may choose from a bunch of different folder views as default view for a folder. The views do not differ much (with or without teaser image, with or without subcontent). I basically want one template and one browser view class with all template variations and make the related choice inside the template. Is there a way to get hold of the configured name of the related view within a template? view/filename exposes the full filename of the template but this would be identical for all variations of the view...any idea?

Wouldn't that be stored in the object's layout attribute?

...yes...banging my head on the wall

1 Like

I guess you could also inspect self.__name__ in the view class.

Plone Foundation Code of Conduct