「関数リファレンス/BcBaser getContentsTitle」の版間の差分
提供: baserCMS公式ガイド
細 (Hanhunhun がページ「関数リファレンス/getContentsTitle」を「関数リファレンス/BcBaser getContentsTitle」に移動しました) |
|
(相違点なし)
|
2015年5月11日 (月) 13:01時点における版
説明
$this->BcBaser->getTitle()では、サイト名やカテゴリ名等を含んだタイトルを取得できますが、$this->BcBaser->getContentsTitle()では、純粋にコンテンツタイトルのみを取得できます。
使い方
echo $this->BcBaser->getContentsTitle()
戻り値
- (string)
- コンテンツタイトル
用例
基本
コード
<?php echo $this->BcBaser->getContentsTitle(); ?>
出力
このコンテンツのタイトル