Django cms show menu引數解釋

2022-07-21 05:15:10 字數 810 閱讀 4452

當頁面結構設定(/admin/cms/page)如下:

- home (level=0)

- about us (level=1)

- about company services (level=2)

- foo bar (level=3)

- our management team (level=2)

- some other section (level=1)

- some sub section (level=2)

- ...

在模板中插入時,實際渲染為乙個ul-li選單, abcd為選單渲染的配置引數.

a = 開始(start)

b = 結束(end)

c = 不活躍的(inactive)

d = 活躍的(active)

表示:a=1: 選單從level1開始渲染,不包括home.

b=2: 選單渲染直到level2結束,不包括foo bar.

c=0: 對於不活躍同級選單分支,顯示0 levels(個數), 即如果當前在about us頁上,不會看到some other section下的任何鏈結,

但是可以看到about company...和our management. 因為此時, 當前about us分支是意義上活躍的, 而some other section分支是意義上不活躍的.

d=100: 對於當前活躍分支, 可以顯示此時頁下100

levels(個數), 這就是為什麼會看到about

company...和our management team.

refer to

createStatement 方法引數解釋

statement stmt conn.createstatement 引數一,引數二 第乙個引數可以取值為 resultset.rtype forword only 這是預設值,只可向前滾動 resultset.type scroll insensitive 雙向滾動,但不及時更新,就是如果資料庫...

vue路由引數解耦

我們vue專案中經常在元件內使用路由引數最開始我常用下面的寫法 export default 在元件中使用 route 會使之與其對應路由形成高度耦合,從而使元件只能在某些特定的 url 上使用,限制了其靈活性。正確的做法是通過 props 解耦 const router newvuerouter ...

wukong問答 signature引數解密

通過搜尋很明顯可以看到js檔案,而且數量也不多 可以進行快速定位。通過重新整理網頁,成功的斷了下來,可以看到關鍵位置。如下 signature acrawler.sign this.concern id this.extra.max behot time 這段 就是給 signature 引數進行賦...