pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

{listid:<name>} issue in list view webpart #198

Closed krunal039 closed 8 years ago

krunal039 commented 8 years ago

We are trying to add listview webpart with PnP file module with pnp:webpart pnp:Contents <![CDATA[]]>/pnp:Content/pnp:webpart, CDATA include .webpart file content exported from site and it required listid and we have used below line to resolve listid but pnp provisioning engine does not resolve listid.

{listid:QuickLinks}

Is it know issue or token is not supported in webpart content.

erwinvanhunen commented 8 years ago

It is not a known issue, and the token is supported. Thank you for reporting this.

The list in question, e.g. the one you are referring to with the token, is it present in the site or is it part of the template you're provisioning?

krunal039 commented 8 years ago

Thanks for quick reply it is already present in site and deployed through pnp:listinstance before it is trying to add list viewwebpart to pagelayout.

I have below error.

There is an error occured : List View Web Part could not be added, list may be hidden.

krunal039 commented 8 years ago

It was caused by out visual studio deployment configuration and token was replaced correctly just build system issue so not actual PnP issue so I am closing it now. Thanks for Erwin for quick help.