WordPressユーザーのbaserCMS覚え書き


管理画面のメールフィールド一覧ページへのリンクを出力する

WordPress

該当する関数(テンプレートタグ)はありません。

テンプレートタグ/get bloginfo - WordPress Codex 日本語版

baserCMS(3系)

$this->Blog->indexFields( $mailContentId )

[indexFields] 管理画面のメールフィールド一覧ページへのリンクを出力する

メモ

公式のリファレンスに載っている関数ですが、本記事執筆時点のバージョン(3.0.2)で /lib/Baser/Plugin/Mail/View/Helper/MailHelper.php に

/**
 * 管理画面のメールフィールド一覧ページへのリンクを出力する
 *
 * @param string $mailContentId
 * @return void
 * @access public
 * @deprecated ツールバーに移行
 */
    public function indexFields($mailContentId) {
if (!empty($this->BcBaser->_View->viewVars['user']) && !Configure::read('BcRequest.agent')) {
echo '<div class="edit-link">' . $this->BcBaser->getLink('≫ 編集する', array('prefix' => 'mail', 'controller' => 'mail_fields', 'action' => 'index', $mailContentId), array('target' => '_blank')) . '</div>';
}
}

と deprecated(非推奨)であることが明記されているので、今後の利用には注意が必要かもしれません。