無事にできました!
ありがとうございます!!
いろいろ読んで頑張ります。
Re: 新規ユーザー登録のオプションを属性セット毎に出力したい
2015年3月12日 at 17:03
【編集しました】
AttributeSet::getByHandleを使って表示はできるようになりました。
$as = AttributeSet::getByHandle('ハンドル名');
if (is_object($as)) { ?>
<h3><? echo $as->getAttributeSetDisplayName()?></h3>
<?php
$attribs = $as->getAttributeKeys();
if (count($attribs) > 0) {
$af = Loader::helper('form/attribute');
foreach($attribs as $ak) {
echo $af->display($ak, $ak->isAttributeKeyRequiredOnRegister());
}
}
}
ですが、設定にある「ユーザー登録フォームに表示」のチェックに関わらず表示されてしまいます。
チェックを入れてあるものだけを表示するにはどうしたらよいでしょうか。
タグ:
Your post has been saved and will be published after approval by the forum moderator.
takuro hishikawa
Re: 新規ユーザー登録のオプションを属性セット毎に出力したい