個人用ツール

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

提供: baserCMS公式ガイド

移動: 案内, 検索
 
(2人の利用者による、間の2版が非表示)
行6: 行6:
 
## 使い方
 
## 使い方
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
$this->BcBaser->getKeywords();
+
<?php $this->BcBaser->getKeywords(); ?>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
行17: 行17:
 
####コード
 
####コード
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 
+
<?php echo $this->BcBaser->getKeywords(); ?>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
####出力
 
####出力
 
<syntaxhighlight lang="html5">
 
<syntaxhighlight lang="html5">
 
+
baser,CMS,コンテンツマネジメントシステム,開発支援
 
</syntaxhighlight>
 
</syntaxhighlight>
  
行46: 行46:
 
##類似の関数
 
##類似の関数
  
[[Category:関数]]
+
[[Category:関数リファレンス]]

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

説明

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

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

使い方

<?php $this->BcBaser->getKeywords(); ?>

戻り値

(string)
meta タグ用のキーワード

用例

基本

コード

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

出力

baser,CMS,コンテンツマネジメントシステム,開発支援

応用

コード

 

出力

キーワードテキスト

変更履歴

ソースファイル

関連資料

類似の関数