Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Icon for a Content Query Web Part

  Asked By: Kara    Date: Dec 18    Category: Sharepoint    Views: 2984

I have been asked if a New! Icon could be placed next to a new posting
on our "News" section of our intranet. The person that designed the
site is no longer with us and he used a CQWP to capture news items from
a different place on this site collection. I have now been asked if a
New! Icon could be placed there. I don't think there is a way native to
SharePoint, but was wondering if this could somehow be programmed? If
possible, could you give me some general guidelines as to how to get
this done?



10 Answers Found

Answer #1    Answered By: Roop Kapoor     Answered On: Dec 18

You may decide that it is no longer the correct approach for you after seeing
this link:

He then updates the code from suggestions in his comments section in this blog

If I am not mistaken the display is of a list in the same site collection. That
would handle your rule of the 'New!' icon  being shown.

Answer #2    Answered By: Kelley Obrien     Answered On: Dec 18

but I think I am missing something
here. The data is brought across ok, but the New! Icon is not
displaying. As I am not a developer, I may have missed it looking at the
code, but I for sure didn't see it. Could you maybe explain what I am

Answer #3    Answered By: Ashleigh Neal     Answered On: Dec 18

If I'm not mistaken the "new" icon  is a feature of the ListView web  part and
not a part  of the list itself. It doesn't show in either a DataForm web
part or a Content Query web part without custom XSL programming.

Answer #4    Answered By: Mitali Panchal     Answered On: Dec 18

I believe that to be true, but in a very generalized manner, how would I
research how to get this done?

Answer #5    Answered By: Wanda Petersen     Answered On: Dec 18

I've done it before, but that was in a custom web  part that duplicated the
basic List View Web part  functionality for a specific view but also applied
audiences. Audiences aren't supported by the regular Listview webpart. I'm
not sure how you would add it using XML. When doing it in code it actually
is a custom column type.

Answer #6    Answered By: Eric Davis     Answered On: Dec 18

I will pass this on to my developers.

Answer #7    Answered By: Giselle Glass     Answered On: Dec 18

I did it using this blog post


Answer #8    Answered By: Kendra Webb     Answered On: Dec 18

I think this will help my developers a lot.

Answer #9    Answered By: Elizabeth Anderson     Answered On: Dec 18

The method in this post uses SharePoint Designer to implement conditional
formatting on a _portion_ of a field in a Data View Web Part -- potentially
a very powerful technique (and one I previously had no idea would work).

Answer #10    Answered By: Jerome Montgomery     Answered On: Dec 18

I am working with my developers who are brand new to SharePoint
development. Can someone tell me what is needed for them to be able to
look at/ modify xsl code? What permissions are needed and where?

Didn't find what you were looking for? Find more on Icon for a Content Query Web Part Or get search suggestion and latest updates.