Skip to content

Instantly share code, notes, and snippets.

@aakash14goplani
Last active August 8, 2018 15:06
Show Gist options
  • Save aakash14goplani/2bd4f3df917db549161d08d204d0a0f8 to your computer and use it in GitHub Desktop.
Save aakash14goplani/2bd4f3df917db549161d08d204d0a0f8 to your computer and use it in GitHub Desktop.
Unshare assets from Site

Unshare Assets from one site

To unshare asset you have to follow same process as you did in share asset, just one change - you have to mention only source publication id.

<asset:share name="publishAsset" publist='<%=source_pubid %>' /><% 

Unshare assets from all sites

<asset:load name="assetObjName" type="<%=assetType %>" objectid="<%=assetId %>" />
<asset:sites name="assetObjName" list="siteNameList" />
<ics:listloop listname="siteNameList">
    <ics:listget listname="siteNameList" fieldname="id" output="site_id" />
    <asset:removesite name="assetObjName" pubid='<%=ics.GetVar("site_id") %>' />
</ics:listloop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment