個人用ツール

「関数リファレンス/BcBaser getContentsTitle」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
(Hanhunhun がページ「関数リファレンス/getContentsTitle」を「関数リファレンス/BcBaser getContentsTitle」に移動しました)
 
行36: 行36:
 
[$this->BcBaser->getTitle()](/関数リファレンス/getTitle)
 
[$this->BcBaser->getTitle()](/関数リファレンス/getTitle)
  
[[Category:関数]]
+
[[Category:関数リファレンス]]

2016年3月29日 (火) 16:22時点における最新版

説明

$this->BcBaser->getTitle()では、サイト名やカテゴリ名等を含んだタイトルを取得できますが、$this->BcBaser->getContentsTitle()では、純粋にコンテンツタイトルのみを取得できます。

使い方

echo $this->BcBaser->getContentsTitle()

戻り値

(string)
コンテンツタイトル

用例

基本

コード

<?php echo $this->BcBaser->getContentsTitle(); ?>

出力

このコンテンツのタイトル

応用

変更履歴

ソースファイル

関連資料

類似の関数

$this->BcBaser->getTitle()