個人用ツール

「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(); ?>

出力

コンテンツページのタイトル

応用

コード

 

出力

 

変更履歴

ソースファイル

関連資料

類似の関数

title