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

Description for second item is not displaying completely as like the first item in CQWP when using itemstyles. The below custom itemstyle i have used.

            <div class="Corpdescriptionstyle" style="height:200px;">
            <xsl:value-of select="substring(@Description, 0, 690)" disable-output-escaping="yes" />
            <a href="{$SafeLinkUrl}">..more</a></div>

            </td>               
        </tr>
        </table>

share|improve this question
add comment

1 Answer

You have a substring for 690 characteres max to display

<xsl:value-of select="substring(@Description, 0, 690)" disable-output-escaping="yes" />

Are you sure that your description is less than 690 chars?

If it is a case check the height of you container: you have set this to 200px. Try to remove this height to check if it is the case.

Hope it helps,

Andrew

share|improve this answer
    
Description is less than 690 characters, for the first item,only the first line is displaying. And for the second item, it displaying more than 5 lines –  Aathi Feb 14 '13 at 10:05
    
Try to read this post - stackoverflow.com/questions/2265334/…, maybe it helps –  Andrew Adamich Feb 14 '13 at 10:23
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.