Edited my post
I was trying to create a CQWP that will display 5 blog posts in the following format:
------------------------------------------------------------
Name of the blog | Previous blog posts: |
-----------------------------------------------------------
Post 5 | Post 4
|
Description | Post 3
|
| Post
2 |
| Post
1 |
--------------------------------------------------------- |
This was my first time using CQWP and XSLT. So the guys in this forum helped me with the code that finds the last item and splits it from the rest of the posts.
But when I try to create a format like the table above, is not possible, because <xsl:Template keeps repeating the layout. It seems that CQWP is not made for fanncy layouts. I think it functions in a top-to-bottom fashion.
If anyone knows how to create the format above, I will be very greatful.
-----------------------------------------------------------------------
First post in this threat:
Can anyone tell me how can I display the last item added using CQWP and XSLT?
The code below displays all titles. I don't know how can I get the last item. The xslt template below works like a repeater control.
Any help will be very much appreciated.
<xsl:template name="abc" match="Row[@Style='abc']" mode="itemstyle">
<xsl:value-of select="@title"/>
</xsl:template>
thank you.