「ver4/関数リファレンス/BcBaser contentsTitle」の版間の差分
提供: baserCMS公式ガイド
細 (1版 : 関数リファレンス→ver4) |
|||
行8: | 行8: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->contentsTitle(); | + | <?php $this->BcBaser->contentsTitle(); ?> |
</syntaxhighlight> | </syntaxhighlight> | ||
2018年10月19日 (金) 01:40時点における版
[このコンテンツは内容調整中です]
目次
説明
コンテンツのタイトルを出力します。
$this->BcBaser->title()では、サイト名やカテゴリ名等を含んだタイトルがtitleタグとして出力されますが、$this->BcBaser->contentsTitle()では、そのコンテンツページのタイトルのみが出力されます。
使い方
<?php $this->BcBaser->contentsTitle(); ?>
用例
基本
コード
<?php $this->BcBaser->contentsTitle(); ?>
出力
コンテンツページのタイトル