So I know you can define how to display a teaser for different content types using if($teaser)
in node--content_type.tpl but how can I add logic to render the teaser in different formats depending on the content type of the page in which it is being displayed?
I want to do this
if($teaser && CONTENT_TYPE_OF_PAGE_THAT_TEASER_IS_DISPLAYED_ON == content_type)
within node--content_type.tpl is there a way to go about this?
For example I have teasers of content type blog. But I want these teasers to display different when they are on a page of content-type:blog, to when they are displayed on a page of content-type:level_3.
Thanks for your time