2015-04-28 9 views
3

說我有以下目錄結構:當我們有兩個選擇器時,Sling如何解決腳本?

  • listcomponent
    • listcomponent.jsp
    • 引渡
      • overview.jsp
      • full.overview.jsp

頁面myPage包含列表組件。 訪問類似http://localhost:4502/content/mysite/mypage.renditions.overview.html的URL時,將使用overview.jsp腳本。 但是,對於http://localhost:4502/content/mysite/mypage.renditions.full.overview.html,使用了listcomponent.jsp腳本。

我想在這種情況下加載full.overview.jsp。我究竟做錯了什麼?

回答

3

在這種情況下,你overview.jsp應該是完整的文件夾,如下:

  • listcomponent

    • listcomponent.jsp
    • 引渡

      • overview.jsp

        • overview.jsp

下面是類似的答案後。 Sling Resolution script calling order

希望這會有所幫助。

相關問題