「関数リファレンス/BcBaser getKeywords」の版間の差分
提供: baserCMS公式ガイド
Tomohiro Abe (トーク | 投稿記録) |
|||
(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,コンテンツマネジメントシステム,開発支援
応用
コード
出力
キーワードテキスト