「関数リファレンス/BcBaser metaKeywords」の版間の差分
提供: baserCMS公式ガイド
細 (Hanhunhun がページ「関数リファレンス/metaKeywords」を「関数リファレンス/BcBaser metaKeywords」に移動しました) |
Tomohiro Abe (トーク | 投稿記録) |
||
行44: | 行44: | ||
##類似の関数 | ##類似の関数 | ||
− | [[Category: | + | [[Category:関数リファレンス]] |
2016年3月29日 (火) 16:31時点における最新版
目次
説明
キーワード用のメタタグを出力します。
コンテンツテンプレート側で何も指定がない場合は、管理画面のサイト基本設定で指定されたサイト基本キーワードを出力します。
使い方
$this->BcBaser->metaKeywords();
用例
基本
コード
コンテンツテンプレート側で何も指定がない場合
<?php $this->BcBaser->metaKeywords(); ?>
出力
'管理画面のサイト基本設定で指定されたサイト基本キーワード'
応用
コード
個別に指定する場合は、コンテンツテンプレートに下記の1行を記述します。
<?php $this->BcBaser->setKeywords('キーワードテキスト'); ?>
出力
キーワードテキスト