個人用ツール

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

提供: baserCMS公式ガイド

移動: 案内, 検索
行13: 行13:
 
####コード
 
####コード
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
<?php $this->BcBaser->getKeywords(); ?>
+
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
####出力
 
####出力
 
<syntaxhighlight lang="html5">
 
<syntaxhighlight lang="html5">
'サイト基本キーワード'
+
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

2014年11月7日 (金) 17:47時点における版

説明

meta タグ用のキーワードを取得する。

コンテンツテンプレート側で何も指定がない場合は、管理画面のサイト基本設定で指定されたサイト基本キーワードが取得できます。

使い方

$this->BcBaser->getKeywords();

用例

基本

コード

 

出力

 

応用

コード

 

出力

キーワードテキスト

変更履歴

ソースファイル

関連資料

類似の関数