「ver4/関数リファレンス/contentsMenu」の版間の差分
提供: baserCMS公式ガイド
Katokaisya (トーク | 投稿記録) |
Katokaisya (トーク | 投稿記録) |
||
行9: | 行9: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->contentsMenu( | + | $this->BcBaser->contentsMenu( $id , $level , $currentId ); |
</syntaxhighlight> | </syntaxhighlight> | ||
2016年11月4日 (金) 17:26時点における版
[このコンテンツは内容調整中です]
目次
説明
コンテンツメニューを出力する
ログインしていない場合はキャッシュする
contents_menu エレメントで、HTMLカスタマイズ可能
使い方
$this->BcBaser->contentsMenu( $id , $level , $currentId );
パラメータ
- (mixed) $id
-
コンテンツID
- 初期値: null
- (int) $level
-
階層
- 初期値: null
※ null の場合は階層指定なし
- 初期値: null
- (string)$currentId
-
現在のページのコンテンツID
- 初期値: null
戻り値
(string)コンテンツメニュー