「関数リファレンス/BcBaser getKeywords」の版間の差分
提供: baserCMS公式ガイド
行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> | ||
2015年4月22日 (水) 17:46時点における版
目次
説明
meta タグ用のキーワードを取得する。
コンテンツテンプレート側で何も指定がない場合は、管理画面のサイト基本設定で指定されたサイト基本キーワードが取得できます。
使い方
<?php $this->BcBaser->getKeywords(); ?>
戻り値
- (string)
- meta タグ用のキーワード
用例
基本
コード
<?php echo $this->BcBaser->getKeywords(); ?>
出力
baser,CMS,コンテンツマネジメントシステム,開発支援
応用
コード
出力
キーワードテキスト