Kartic's Musings on Corporate Information and Knowledge Management

November 1, 2007

Content query web part: customisation and adding custom fields

Filed under: SharePoint — Tags: , , , , — kartickapur @ 6:17 am

Don’t we all love Content Query Web Part in MOSS 2007. Its a powerful tool to display content from other sites.

We do come to a dead end when the requirement is to display fields other than the one’s available out of the box or to show context menu.

It is amazing to see how an ordinary user (doesn’t have to be a developer) can modify the .webpart file to customise it. follow the steps given on microsoft technet site:

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

you will notice that CommonViewFields property can be changed easily. you will need to know the type of the column. The list is not given in the article. you can get it here:

Field Name

Description
AllDayEvent Specifies an all day event. 
Attachments Contains attachments. 
Boolean Contains Boolean values that are stored in the database as 1 or 0
Calculated Contains calculated values. 
Choice Specifies a predetermined set of values that can be used to enter data into the field. 
Computed Specifies an abstract field type that depends on other fields for its content and definition. 
ContentTypeId Contains a content type ID.  
Counter Contains an integer used for internal ID fields. 
CrossProjectLink Specifies a link between projects in a Meetings Workspace site. 
Currency Contains currency values formatted based on a specific locale. 
DateTime Contains date and time values. 
Error Contains errors. 
File Contains files. 
GridChoice Specifies a Choice field for a data sheet. 
Guid Contains GUIDs. 
Integer Contains positive or negative integer values. 
Invalid Not used. 
Lookup Contains references to values in other lists. 
MaxItems Contains the maximum number of items. 
ModStat Specifies Content Approval status. 
MultiChoice Contains multiple values per list item. 
Note Specifies a field that can contain multiple lines of text. 
Number Contains floating point numbers. 
PageSeparator Inserts a page break in a survey list. 
Recurrence Specifies a field used in calendars for recurring events and, like computed fields, an abstract field type that depends on other fields for its content and definition. 
Text Contains a single line of text. 
ThreadIndex Contains the ID that indicates the relative position of a message within a conversation thread. 
Threading Specifies a field that is used in the creation and display of threaded Web discussions. 
URL Contains hyperlinks. 
User Specifies users of a SharePoint site. 
WorkflowEventType Specifies a workflow event type. 
WorkflowStatus Specifies workflow status. 

Enhanced Content Query Web Part created by my colleague Ishai Sagi is an amazing web part: http://www.codeplex.com/ECQWP

Heather Solomon provides the easy approaches of not just customising the Web Part but to apply custom styles as well. Look for step by step details here: http://www.heathersolomon.com/blog/articles/customitemstyle.aspx

Advertisements

13 Comments »

  1. […] Check it out! While looking through the blogosphere we stumbled on an interesting post today.Here’s a quick excerptDon’t we all love Content Query Web Part in MOSS 2007. Its a powerful tool to display content from other sites. We do come to a dead end when the requirement is to display fields other than the one’s available out of the box or to show … […]

    Pingback by My Ghillie » Content query web part: customisation and adding custom fields — November 1, 2007 @ 6:24 am

  2. […] Kartic’s blog […]

    Pingback by The Content Query Web Part « Path to SharePoint — June 8, 2009 @ 4:50 am

  3. The pregame videos are amazing and just like a real NFL broadcast,
    with exciting graphics and music highlighting the marquee players who
    will be featured in the upcoming game. FIFA 14 TOTW
    4 has been chosen from 9th September to 15th October.
    Electronic Arts’ soccer simulation “FIFA 14” is now available on the Play
    – Station 3 and XBox 360, EA Sports confirmed today on their official
    site.

    Comment by fifa coins — March 13, 2014 @ 11:46 am

  4. We stumbled over here differennt web address and thought I might as
    well check things out. I like what I see so now i’m following you.
    Look forward to looking over your web page for a second time.

    Comment by best article marketing service — July 24, 2014 @ 3:20 am

  5. Thanks for some other excellent article. The place else may
    anybody get that type of information in suych a perfect method
    of writing? I have a presentation next week, and I
    aam at the search for such info.

    Comment by spiritual psychic — July 24, 2014 @ 3:31 am

  6. Amazing! Itss in fact amazing post, I have got mich
    clear idea regarding from this paragraph.

    Comment by psychic-predictions-for-2014 — August 1, 2014 @ 1:47 am

  7. Having read this I thought it was very enlightening.
    I appreciate you spending some time and energy to put thiks short article together.
    I once again find myself personally spending a lot of time
    both reqding and posting comments. But so what, it was
    still worthwhile!

    Comment by obstacles — September 8, 2014 @ 1:26 am

  8. WOW just what I was searching for. Came here
    by searching for brawler

    Comment by brawler — September 10, 2014 @ 1:34 am

  9. Right here iis the right blog for everyone who wishes to find out about this topic.
    You know a whole lot its almost tough to argue with you (not thjat I
    aactually will need to…HaHa). You certainly put a brand neww spin on a topic
    that’s been written about for many years.
    Great stuff, just great!

    Comment by mineral — September 14, 2014 @ 6:58 pm

  10. If you wish for to get a good deal from this aticle then you have to apply these
    methods to your won blog.

    Comment by weapon — September 14, 2014 @ 11:56 pm

  11. Excellent post! We wilpl be linkig to this particularly great article on our site.
    Keep up the great writing.

    Comment by tower — September 24, 2014 @ 9:09 pm

  12. Hello there! This bpog post could not be written any better!
    Looking at this post eminds me of my previous roommate!
    He continually kept talking about this. I’ll forward this post to him.

    Pretty sure he’ll have a very good read. Thank you
    ffor sharing!

    Comment by fortune teller — September 27, 2014 @ 7:20 am

  13. Еесли вы хотите Вы отыщите телефоны элитных проституток, готовых встретиться с Вами прямо незамедлительно. Эти девушки абсолютно не напоминают обычных проституток, они больше похожи на моделей, которые сошли к Вам просто из глянцевых журналов. Вам не надо пускаться в длительные обхаживания, флиртовать, признаваться в любви. Вы совершенно не обязаны индивидуалке, которую Вы вызвали. Она всего-навсего Ваш деловой партнер, честно выполняющий свои обязанности за вознаграждение.
    Занятие сексом транссексуалки Москвы без лишних обязанностей и без пределов – это очень практично, если Вы никак не можете выбрать время на устройство своих отношений с противоположным полом. Так что навестите наш сайт, пролистывайте свежие анкеты индивидуалок, элитных проституток, трансексуалов и выбирайте ту, с которой Вы желаете провести вечер как раз сегодня, в настоящий момент времени.

    Comment by Kennethtef — March 23, 2016 @ 4:58 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: