「関数リファレンス/BcBaser contentsTitle」の版間の差分
提供: baserCMS公式ガイド
細 (Hanhunhun がページ「関数リファレンス/contentsTitle」を「関数リファレンス/BcBaser contentsTitle」に移動しました) |
Tomohiro Abe (トーク | 投稿記録) |
||
行43: | 行43: | ||
[title](/関数リファレンス/title) | [title](/関数リファレンス/title) | ||
− | [[Category: | + | [[Category:関数リファレンス]] |
2016年3月29日 (火) 16:17時点における最新版
目次
説明
コンテンツのタイトルを出力します。
$this->BcBaser->title()では、サイト名やカテゴリ名等を含んだタイトルがtitleタグとして出力されますが、$this->BcBaser->contentsTitle()では、そのコンテンツページのタイトルのみが出力されます。
使い方
$this->BcBaser->contentsTitle();
用例
基本
コード
<?php $this->BcBaser->contentsTitle(); ?>
出力
コンテンツページのタイトル