「ver4/関数リファレンス/BcBaser getKeywords」の版間の差分
提供: baserCMS公式ガイド
行47: | 行47: | ||
##類似の関数 | ##類似の関数 | ||
+ | - [metaKeywords](/ver4/関数リファレンス/metaKeywords) - キーワード用のメタタグを出力する | ||
+ | - [metaDescription](/ver4/関数リファレンス/metaDescription) - ページ説明文用のメタタグを出力する | ||
- [getDescription](/ver4/関数リファレンス/getDescription) - meta タグ用のページ説明文を取得する | - [getDescription](/ver4/関数リファレンス/getDescription) - meta タグ用のページ説明文を取得する | ||
[[Category:関数リファレンスver4]] | [[Category:関数リファレンスver4]] |
2018年11月2日 (金) 22:06時点における版
[このコンテンツは内容調整中です]
目次
説明
meta タグ用のキーワードを取得する。
コンテンツテンプレート側で何も指定がない場合は、管理画面のサイト基本設定で指定されたサイト基本キーワードが取得できます。
使い方
<?php $this->BcBaser->getKeywords(); ?>
戻り値
- (string)
- meta タグ用のキーワード
用例
基本
metaタグ用のキーワードを取得しechoで出力する。
コード
<?php echo $this->BcBaser->getKeywords(); ?>
出力
baser,CMS,コンテンツマネジメントシステム,開発支援
応用
コード
出力
注
変更履歴
ソースファイル
関連資料
類似の関数
- metaKeywords - キーワード用のメタタグを出力する
- metaDescription - ページ説明文用のメタタグを出力する
- getDescription - meta タグ用のページ説明文を取得する