Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to use CQWP to query from one Specific list and that is something we can achieve using following Property and like this

" replace with </Lists> ]]>"

This is good but if i export this from dev environment to other environment then this is not going to work as it list has different guid.

how to get around this please advise

Thanks Ronak

share|improve this question
    
Your xml seems to have gotten eaten by Html goblins. Can you post it and surround it with the code designator - back quotes –  Dave Wise Mar 1 '12 at 20:08
add comment

1 Answer

Remove the GUID based reference from the exported .webpart file Use the ListUrl property and use a server relative Url to the list.

<property name="ListGuid" type="string" />
<property name="ListUrl" type="string">~sitecollection/Pages</property>
share|improve this answer
    
Thanks Gavin where do i need to do that in ListOverride Property ? –  Ronak Mar 2 '12 at 14:00
    
I don't have a 2007 environment handy, but when you export the CQWP there is should be properties for ListId and ListUrl, just use those. –  GavinB Mar 2 '12 at 23:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.