Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.