[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to add ListName property instead of ListGuid in Onet

Posted on 2010-09-15
3
Medium Priority
?
990 Views
Last Modified: 2012-05-10
I have a ContentQueryWebPart in my home page which displays the data from a list.
When i genereate the XML for the webpart, i see that the XML ahs a property called ListGuid which points to the list from which the data has to be displayed from. Is it possible to have the ListName or the listPath instead of the ListGuid? This is because, obviously, the Guid of the list would differ if the portal has to be deployed in a different server.
<property name="ListGuid" type="string">B22FCCBB-7A71-42E5-9296-AEEB5B06D380</property>

Open in new window

0
Comment
Question by:rajasoorya_kc
[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
  • 2
3 Comments
 

Author Comment

by:rajasoorya_kc
ID: 33688822
Below mentioned are the various properties i see in the generated XML for the webpart.
<property name="ViewContentTypeId" type="string" >
<property name="XslLink" type="string" null="true" >
<property name="UseCopyUtil" type="bool">True</property>
<property name="Title" type="string">Quick Links</property>
<property name="ContentTypeName" type="string">Link</property>
<property name="ChromeState" type="chromestate">Normal</property>
<property name="ItemStyle" type="string">LinkList</property>
<property name="NoDefaultStyle" type="string" null="true" >
<property name="ViewFieldsOverride" type="string" >
<property name="GroupByFieldType" type="string" >
<property name="AllowZoneChange" type="bool">True</property>
<property name="AllowClose" type="bool">True</property>
<property name="FilterType3" type="string" >
<property name="ListName" type="string">Quick Links</property>
<property name="UseCache" type="bool">True</property>
<property name="ParameterBindings" type="string" null="true" >
<property name="Hidden" type="bool">False</property>
<property name="AdditionalGroupAndSortFields" type="string" null="true" >
<property name="FeedTitle" type="string" >
<property name="ExportMode" type="exportmode">All</property>
<property name="HeaderXslLink" type="string" >
<property name="HelpMode" type="helpmode">Modeless</property>
<property name="DataColumnRenames" type="string" >
<property name="Width" type="string" >
<property name="FeedDescription" type="string" >
<property name="AllowHide" type="bool">True</property>
<property name="CatalogIconImageUrl" type="string" >
<property name="Default" type="string" >
<property name="FeedEnabled" type="bool">False</property>
<property name="WebsOverride" type="string" >
<property name="AllowConnect" type="bool">True</property>
<property name="HelpUrl" type="string" >
<property name="ListGuid" type="string">B22FCCBB-7A71-42E5-9296-AEEB5B06D380</property>
<property name="WebUrl" type="string">/</property>
<property name="ItemLimit" type="int">15</property>
<property name="ListsOverride" type="string" >
<property name="SortByFieldType" type="string">DateTime</property>
<property name="ShowUntargetedItems" type="bool">False</property>
<property name="TitleIconImageUrl" type="string" >
<property name="ViewFlag" type="string" >
<property name="ChromeType" type="chrometype">TitleOnly</property>
<property name="FilterValue2" type="string" >
<property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Or</property>
<property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Or</property>
<property name="CommonViewFields" type="string">URL, Text</property>
<property name="FilterType1" type="string" >
<property name="GroupBy" type="string" >
<property name="Xsl" type="string">&amp;<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" &amp;gt; &amp;<xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /&amp;gt; &amp;<xsl:import href="/Style Library/XSL Style Sheets/ItemStyle.xsl" /&amp;gt; &amp;<xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /&amp;gt; &amp;</xsl:stylesheet&amp;gt;</property>
<property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
<property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="FilterValue3" type="string" >
<property name="FilterField3" type="string" >
<property name="AllowEdit" type="bool">True</property>
<property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="QueryOverride" type="string" >
<property name="CacheXslTimeOut" type="int">86400</property>
<property name="MainXslLink" type="string" >
<property name="FireInitialRow" type="bool">True</property>
<property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Desc</property>
<property name="ItemXslLink" type="string" >
<property name="FilterByAudience" type="bool">False</property>
<property name="DisplayName" type="string" >
<property name="ServerTemplate" type="string">103</property>
<property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Desc</property>
<property name="FilterValue1" type="string" >
<property name="ShowWithSampleData" type="bool">False</property>
<property name="BaseType" type="string" >
<property name="DataFields" type="string" >
<property name="UseSQLDataSourcePaging" type="bool">True</property>
<property name="AdditionalFilterFields" type="string" null="true" >
<property name="PageSize" type="int">-1</property>
<property name="FilterType2" type="string" >
<property name="ContentTypeBeginsWithId" type="string" >
<property name="DataSourceID" type="string" >
<property name="SystemViewFields" type="string" >
<property name="AllowMinimize" type="bool">True</property>
<property name="FilterField1" type="string" >
<property name="SortBy" type="string">{8c06beca-0777-48f7-91c7-6da68bc07b69}</property>
<property name="CacheXslStorage" type="bool">True</property>

Open in new window

0
 
LVL 21

Expert Comment

by:66866
ID: 33702172
OOTB webparts there is very little you can do. If you want you can write your own webpart that looks for List Name and then display the data.
0
 

Accepted Solution

by:
rajasoorya_kc earned 0 total points
ID: 33723772
The issue is resolved now. All that i did was... delete the ListGUID property.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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