sightly

    1熱度

    1回答

    使用JavaScript使用-Api我可以創建自定義對象並將其返回給html文件。此功能允許我創建自定義對象的列表,可用於創建菜單或其他複雜的類列表組件。 讓我們假設我有以下內容構成: /content /project /homepage /contentpage1 /contentpage1.1 /contentpage1.2

    1熱度

    1回答

    我有輕微的代碼是這樣的: <ul class="topnav" data-sly- use.topnav="com.company.companysite.util.myJavaClass" data-sly-list="${topnav.getPathValueMap}"> <li>${!item}></li> (what do I put here??) </ul> 和Java

    5熱度

    1回答

    使用data-sly-list我可以在一個列表對象中進行視覺檢查,但是如何檢查列表是否爲空? data-sly-list只是在空列表對象上不渲染任何內容,如果列表中不包含任何項目,我需要顯示替代文本。 感謝

    1熱度

    1回答

    我正在嘗試執行todomvc示例Sightly應用程序。創建一個包,並在AEM安裝它,當我嘗試通過導航,查看待辦網頁(通過包創建) http://localhost:4502/content/todo.html 後,顯示爲空白頁。當我檢查錯誤日誌,我發現以下異常: GET /content/todo.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDeve

    2熱度

    1回答

    我試圖調試存儲在JCR中的JavaScript,並通過Sightly模板語言的JavaScript UseAPI在Rhino上運行服務器。 按在sling.properties提供的說明: # To enable the current server side debugging in the Rhino interpreter # set the org.apache.sling.script

    3熱度

    2回答

    我身邊有使用悅目訪問組件的子節點的問題。我有一個模板,它使用數據狡猾的資源來提取基本的圖像組件,就像這樣。 <div class="${wcmmode.edit ? 'image-edit image' : 'image'}" data-sly-resource="${ 'heroImage' @ resourceType='/libs/foundation/components/image',