PedroCordeiro
PedroCordeiro

Reputation: 76

Access content type with Theme Inspector

I have a question regarding diazo theming in my plone's website.

I have 2 content types in my homepage, "Events" and "News Items". I can filter Events in the theme inspector by looking at the HTML code (div class="vevent") but News Items have no class. In fact, none of my own-created content types have a class.

How can I 'register' a class for my content types? This would allow me to manipulate my theme with diazo rules.

Thanks in advance.

Upvotes: 1

Views: 65

Answers (1)

keul
keul

Reputation: 7819

If you check the unskinned Plone you'll see that the body class contains some very useful CSS classes:

  • template-current_view
  • portaltype-current_portal_type
  • section-1rs_level_subsection

I think you can find what you need using aboves.

I suggest you to preserve those classes in the skinned theme too. They can be useful.

Upvotes: 2

Related Questions