> For the complete documentation index, see [llms.txt](https://wiki.owain.codes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.owain.codes/coding/umbraco/umbraco-10+/find-out-model-of-current-page.md).

# Find out Model of Current page

On the partial view use <br>

`if(Umbraco.AssignedContentItem is PropertyListing) { bannerClass += "__property"; }`\
\
This then checks to see if the current page that this partial is on and if it's of type PropertyListing then I add the \
`__property` css class
