「ver4/関数リファレンス/BcBaser contentsTitle」の版間の差分
提供: baserCMS公式ガイド
行1: | 行1: | ||
− | |||
## 説明 | ## 説明 | ||
行23: | 行22: | ||
コンテンツページのタイトル | コンテンツページのタイトル | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | ## 変更履歴 | ||
+ | - [https://github.com/baserproject/basercms/blob/98c5d24daca66c38dfbd2b67c0ac85a3b5902b26/lib/Baser/View/Helper/BcBaserHelper.php#L388 4.4.0] | ||
##類似の関数 | ##類似の関数 |
2020年10月19日 (月) 15:04時点における最新版
説明
コンテンツのタイトルを出力する。
<title>コンテンツタイトル</title> として出力したい場合は title() を使う。
使い方
<?php $this->BcBaser->contentsTitle(); ?>
用例
基本
コンテンツページのタイトルを出力する。
コード
<?php $this->BcBaser->contentsTitle(); ?>
出力
コンテンツページのタイトル
変更履歴
類似の関数
- getContentsTitle - コンテンツタイトルを取得する
- title - タイトルタグを出力する
- getTitle - タイトルタグを取得する