[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How do I customize the content query web part in SharePoint 2010?

Posted on 2011-02-16
6
Medium Priority
?
875 Views
Last Modified: 2012-05-11
Hello Everybody,
We recently created page with a links list of over 50+ links.  Is it possible to use the content query web part in SharePoint 2010 to show only the top 10 frequently used links?  If so, could you please provide instructions on how to customize the content query web part.  Thank you in advance for your help.
0
Comment
Question by:amarelv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:Sleetish
ID: 34911531
The content query will only grab content that's available to it

I don't believe the list has any field that actively tracks activity.

I think this may be what you're looking for:

http://blogs.msdn.com/b/ecm/archive/2010/03/21/introducing-web-analytics-in-sharepoint-2010.aspx
0
 

Author Comment

by:amarelv
ID: 34911698
Hi Sleetish - Thank you so much for your quick reply.  I greatly appreciated your feedback but let me try to reword my question again.  We have already picked out the 10 links and somehow would like to "customize" it through content query web part to show those 10 links on the Home Page.  Is this possible?  Please let me know.  
0
 
LVL 6

Accepted Solution

by:
Rafael I earned 2000 total points
ID: 34912144
Easy way:
Why don't you use a "Content Editor Web Part" instead and enter the links manually instead of trying to retrieve them?  If one of the 50 links changes, you'll have to edit it, but then you won't have to worry about trying to make data connect.

Hard way:
Create a yes/no column in your 50+ link library that you will edit to say yes if you want it to display on the homepage, then use a Content Query Web Part to retrieve values from your list that are set to "Yes".  This method would also let you set a value for how many links to display at a time.

One way is more fun and the other way is quicker :)
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 3

Expert Comment

by:Sleetish
ID: 34912540
Amarely,

Very possible.  Rawsteak's suggestions would work.  His "Hard way" is actually more or less how "Top Sites" works.  You could actually customize a Top Sites web part and just change the query to get the same functionality.

Alternatively in a similar but not so hard way, you could add an additional field and put any value in it, and then sort items by that field, only put something in those 10 links fields, and limit the amount of links on the front to display only 10.  It will return those 10 first, so they would be the only links that show up.

Does that make sense?
0
 

Author Comment

by:amarelv
ID: 35030948
Hi Sleetish - Thank you for introducing me about the Web Analytics report and will need to do more research on it.  :)

Hi Rawsteak - I've decided to use your second suggestion and was able to pull the 10 links using the Content Query Web Part to retrieve values from list that are set to "Yes".  Could you please show me if there's a way for users to be able to clink on the link and it directly takes them to the website  instead of going through this page-?  Please see screen shot  below Page.  Thank you in advance for your help!
0
 

Author Closing Comment

by:amarelv
ID: 35189336
Thank you so much for all of your help.  It is greatly appreciated.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question