如何以 JSON 格式匯出資產的本機參照
在本檔案中,您將瞭解如何在Adobe Experience Manager中將資產的本機參考匯出為JSON格式。
說明 description
環境
-
Adobe Experience Manager as a Cloud Service
-
Adobe Experience Manager 6.5
問題/症狀
您可以在參照索引標籤(屬性)上檢視資產的本機參照。 (在「資產」控制檯中,選取資產,選取屬性(位於工具列中),然後選取參照索引標籤。) 當您在 AEM 外部使用資訊時,可以將資訊匯出為 JSON 格式。
解決方法 resolution
存取下列URL*[
1]
*傳回 本機參考 (以JSON格式)。 此 路徑 回應中的值是參照目標資產的內容路徑。
[
1]
http://localhost:4502/bin/wcm/references.json?path=<
目標資產的路徑>
使用範例:
http://localhost:4502/bin/wcm/references.json?path=/content/dam/wknd/en/activities/hiking/equipment_6.jpg
JSON 回應範例:
{ pages: [ { srcPath: "/content/dam/wknd/en/activities/hiking/equipment_6.jpg", srcTitle: "equipment_6.jpg", path: "/content/wknd/language-masters/en/adventures/riverside-camping-australia", title: "Riverside Camping", references: [ "/content/wknd/language-masters/en/adventures/riverside-camping-australia/jcr:content/root/container/container/tabs/item_1570890147607/par0/image/fileReference" ] , published: false, isPage: "true" }, { srcPath: "/content/dam/wknd/en/activities/hiking/equipment_6.jpg", srcTitle: "equipment_6.jpg", path: "/content/wknd/ca/en/adventures/riverside-camping-australia", title: "Riverside Camping", references: [ "/content/wknd/ca/en/adventures/riverside-camping-australia/jcr:content/root/container/container/tabs/item_1570890147607/par0/image/fileReference" ] , published: false, isPage: "true" }, { srcPath: "/content/dam/wknd/en/activities/hiking/equipment_6.jpg", srcTitle: "equipment_6.jpg", path: "/content/wknd/us/en/adventures/riverside-camping-australia", title: "Riverside Camping", references: [ "/content/wknd/us/en/adventures/riverside-camping-australia/jcr:content/root/container/container/tabs/item_1570890147607/par0/image/fileReference" ] , published: false, isPage: "true" } ] }
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f