從當前開啟的頁面開始啟用 JCR 中的所有頁面

建立一個新的瀏覽器書籤,例如,在 Chrome 中單擊位址列右側的星形圖示,確保資料夾書籤欄,然後單擊編輯… 按鈕:

StackOverflow 文件

在開啟的編輯框中貼上以下程式碼作為 URL:

javascript:(function(){var root=(window.location.pathname+window.location.hash).replace(/.html.*$/,'').replace('cf#/','').replace('/crx/de/index.jsp#','').replace('siteadmin#/','').replace('/editor.html','');if(!document.forms.ta){document.body.insertAdjacentHTML('afterbegin','<form name="ta" target="_blank" action="/etc/replication/treeactivation.html" method="POST"><input type="hidden" name="_charset_" value="UTF-8"><input type="hidden" id="path" name="path" value="'+root+'"></form>');}document.forms.ta.submit();})()

StackOverflow 文件

用法

確保書籤欄可見:設定>書籤>顯示書籤欄(或 Cmd + Shift + B / Ctr + Shift + B。

  1. 開啟 AEM 頁面。
  2. 單擊書籤。樹啟用進度將顯示在新視窗中。

你還可以在導航樹中選擇所需的父頁面時直接從 siteadmin 呼叫樹啟用,並且顯示的 URL 為例如 http:// localhost:4502 / siteadmin#/ content / geometrixx-outdoors / en

PS:如果要修復/更新 bookmarklet 程式碼,請將其貼上到 http://subsimple.com/bookmarklets/jsbuilder.htm 中的表單中,然後單擊“ 格式”