SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm rendering three columns, each containing a CQWP. Each CQWP will utilize a different item template to render the contents, however, I need to add an additional class rule along-side cqwp-layout-main, according to our designer / html editor.

I know that this gets rendered in the OuterTemplate in the ContentQueryMain xsl, but I cannot seem to regulate the rendering based on template name, for exampe @Style='CaseStudies'.

Is there a way that I can achieve this?

share|improve this question
up vote 1 down vote accepted

You cannot add additional classes to the cqwp-layout-main as it's not rendered through the XSLT.

The closest you can get is the dfwp-list from the LevelStyle.xsl which renderes the "columns" in the Content Query Web Parts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.