문제

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>
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top