jquery를 사용하여 요소를 찾아 수동으로 제거하여 clientlib를 직접 작성하여이 문제를 해결할 수있었습니다. 다음은 clientlib입니다.
(function(document, $) {
$(document).ready(function(){
var $path = $("[data-type='path']");
var $filetype =$("[data-type='options']");
var $filesize = $("[data-type='filesize']");
if($path.length == 0){
return;
}
//defined in /libs/dam/gui/content/assets/jcr:content/body/content/aside/items/search
var ASSET_RAIL_SEARCH = "#aem-assets-rail-search";
var doSearch = function(){
//$path.remove();
if (window.location.href.indexOf("content/dam/geometrixx/portraits") > -1) {
$filesize.remove();
$filetype.remove();
} else {
// remove custm properties.
}
};
if($.cookie("endor.innerrail.current") == ASSET_RAIL_SEARCH){
doSearch();
}
$(document).on('click', '.js-endor-innerrail-toggle', function(e) {
doSearch();
});
});
})(document, Granite.$);
AEM의 버전은 무엇입니까? – VAr
안녕하세요 @VAr, 나는 AEM 6.1을 사용하고 있습니다. –
현재 검색 동작 구성 요소가 묶이지 않은 상태에서 전체 검색 폼 구성 요소 **'(/ libs/granite/ui/components/foundation/contsys)'** 기능을 사용자 정의해야하는 것처럼 보입니다. 댐 경로 선택 필터 (패싯 항목)를 사용하여 나머지 필터 (패싯 항목)를로드하고 모든 필터 (패싯 항목)는 개별적으로 자산 표시를 트리거합니다. – VAr