Sharepoint - CQWP to point to current site
-
16-10-2019 - |
Pergunta
In an ONET.XML file I build a page with a CQWP. The CQWP has a WebUrl property is there a way to set this to alway be the the current web?
I tried this but it didn't work.s
<AllUsersWebPart WebPartZoneID="g_LeftCell" WebPartOrder="1" >
<![CDATA[
<webParts>
...
<property name="WebUrl" type="string">~Site</property>
Solução
Both ~SiteCollection and ~Site are valid tokens.
<property name="WebUrl" type="string">~sitecollection</property>
for root site or
<property name="WebUrl" type="string">~site</property>
for current subsite
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange