활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
I have added a new dropdown to the asset Properties page. I have also added a custom validation file to the asset metadata schema. When I select any asset and open the Properties page, the JS file loads.
I wanted to verify the value of some node properties-value (like title, mime type etc) of the asset whose Properties page is open. But i dnt know how can i get the resource and its property values.
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
You can do an AJAX call from your custom JavaScript to get the asset Node values. Try the below code.
let props = $.getJSON($("form[data-formid]").data("formid")+".infinity.json");
// To get metadanode values
let props = $.getJSON($("form[data-formid]").data("formid")+"/_jcr_content/metadata.json");
// Get specific property value
let mimeType = props.responseJSON["dam:MIMEtype"];
Hope this works.
You can do an AJAX call from your custom JavaScript to get the asset Node values. Try the below code.
let props = $.getJSON($("form[data-formid]").data("formid")+".infinity.json");
// To get metadanode values
let props = $.getJSON($("form[data-formid]").data("formid")+"/_jcr_content/metadata.json");
// Get specific property value
let mimeType = props.responseJSON["dam:MIMEtype"];
Hope this works.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수