0
탐색 창을 만들 수 있습니다 나에게 내 모든 사이트 및 subsits의 목록을 제공 :구문 분석 데이터 내가이 XML 응답이
https://hosted.demo.ca
https://hosted.demo.ca/academic
https://hosted.demo.ca/academic/bm
https://hosted.demo.ca/academic/cmtte
https://hosted.demo.ca/academic/dm
https://hosted.demo.ca/academic/pm
https://hosted.demo.ca/archive
https://hosted.demo.ca/associations
https://hosted.demo.ca/associations/bm
https://hosted.demo.ca/associations/dm
https://hosted.demo.ca/associations/pm
내가 사이트 탐색 메뉴를 만들려면이 정보를 통해 이동 및 UL 및 선형 태그를 추가 할 수있는 방법
? XML을 가져 오는 데 사용
JS가 :
function getAllSites(){
$().SPServices({
operation: "GetAllSubWebCollection",
async: true,
completefunc: function(xData, Status){
$(xData.responseXML).find("Web").each(function(){
console.log($(this).attr("Url"));
});
}
});
}
당신은 내가하려고하는 것에 꽤 가깝습니다. 그러나 당신이 모든 수준을 함께 그룹화하고 싶다고 가르친 것처럼 보입니다. (즉, 모든 레벨 1이 함께 앉아 모든 lv2 사이트가 더 원활하게 작동합니다.) 정확히 달성하려는 것은 아닙니다. 내가 의미하는 바를 보여주기 위해 나의 OP를 업데이트했다. – Batman