logo

How to display "new!" tag in Content Query WebPart

ania.w posted on Saturday, March 10, 2007 4:24 PM

Hello,
I want this green tag "new!" that appears in listviews to show up in
content query wp, anybody did that? Any help appreciated.
Regards,
Anna W.
reply


Anna,You just need to modify the CQWP by getting the date that you want to

John Stover posted on Sunday, March 11, 2007 6:31 PM

Anna,

You just need to modify the CQWP by getting the date that you want to base
matching for 'new' on and edit the XSL to peform the checking and placing
the appropriate styling/image in place to show that it is "new!".

Hope this helps,
John Stover
reply

I have the answer. you just have to past a piece of code to the itemlist.

Komakin posted on Thursday, March 22, 2007 12:45 AM

I have the answer. you just have to past a piece of code to the itemlist.xsl
in the style library. Then you have to refer the CQWebpart to this new added
style (edit the webpart --> display styles)

i'll add the piece of code here, asap.

greets
reply

How to display "new!" tag in Content Query WebPart

Komakin posted on Thursday, March 22, 2007 2:33 AM

1)Add this line to the root style sheet element <xsl:stylesheet
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"

2)Add this part below <xsl:template name="TitleOnly"
match="Row[@Style='TitleOnly']" mode="itemstyle"> element


match="Row[@Style='TitleWithNewImageOnly']" mode="itemstyle">
name="OuterTemplate.CallPresenceStatusIconTemplate"/>
title="{@LinkToolTip}">
reply

How to display "new!" tag in Content Query WebPart

ania.w posted on Monday, March 26, 2007 4:39 PM

Thanks a lot :) I will try it asap!
I have another question.
What is the best approach to display other list/library data fields, I
heard that by default you can only display title, created, description
and rollup image. How to display columns added by user?
Best regards.


Komakino napisał(a):
reply

How to display "new!" tag in Content Query WebPart

AdriVerlaanMSF posted on Tuesday, March 27, 2007 8:03 PM

http://msdn2.microsoft.com/en-us/library/ms497457.aspx
http://msdn2.microsoft.com/en-us/library/aa981241.aspx

Adri [MSFT]
--
This posting is provided "AS IS" with no warranties, and confers no rights.
reply

Thanks Adri,but I have a webpart that cannot be modified from web browser - it

a posted on Thursday, April 05, 2007 12:31 PM

Thanks Adri,
but I have a webpart that cannot be modified from web browser - it is
not in web part zone - that was my choice to not allow users to close
and change appearance of it and I wanted all pages based on this layout
to have this webpart by default. How can I make this modification from
SPD, I can't find the option of export web part in SPD ...
Thanks for help anyway :)
Ann W



Adri Verlaan [MSFT] napisał(a):
reply

Hi Anna,From SPD you can get to each .

AdriVerlaanMSF posted on Tuesday, April 17, 2007 5:28 PM

Hi Anna,

From SPD you can get to each .webpart properties by using the "Tag
Properties" task pane.

Adri Verlaan [MSFT]
--
This posting is provided "AS IS" with no warranties, and confers no rights.
reply

 

Didn't Find The Answer You Were Looking For?

View SharePoint Design Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum

Previous SharePoint Design conversation.

SharePoint Portal Server    SharePoint Portal Server Dev    SharePoint Windows Services    Sharepoint Windows Services    SharePoint Design    SharePoint Development    SharePoint    SharePoint Setup   




  $1000    Adam Houldsworth - $187  |  Jonathan VH - $139  |  Kirtan Patel - $117  |  F Cali - $116  |  Huggy Bear - $88  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010