創作サイト向けコンテンツ管理システム freo(フレオ)
ホーム
このサイトについて
サイトマップ
有償制作
お問い合わせ
サイト内検索
キーワード
freo
freoについて
機能紹介
設置方法
各種解説
プラグイン
サポート
ホーム
サポート
サポート
記事編集
記事を編集します。
編集フォーム
名前
設置URL
本文
こんにちは。 プロフィールプラグイン実装後、[freo/index.php/profile]画面にアクセスすると、登録されているプロフィールが一覧表示されます。 また、[freo/templates/plugins/profile/default.html]の10行目と11行めの間などに >|| <!--{foreach from=$plugin_profile_categories|smarty:nodefaults item='plugin_profile_category'}--> <h3>{$plugin_profile_category.name}</h3> <!--{/foreach}--> ||< のように記載すると、プロフィールのカテゴリーを一覧表示できます。 これを利用して、[freo/templates/plugins/profile/default.html]の11行目~41行目を >|| <!--{foreach from=$plugin_profile_categories|smarty:nodefaults item='plugin_profile_category'}--> <h3>{$plugin_profile_category.name}</h3> <table summary="プロフィール"> <thead> <tr> <th>ID</th> <th>名前</th> <th>フリガナ</th> <th>カテゴリー</th> <th>タグ</th> </tr> </thead> <tfoot> <tr> <th>ID</th> <th>名前</th> <th>フリガナ</th> <th>カテゴリー</th> <th>タグ</th> </tr> </tfoot> <tbody> <!--{foreach from=$plugin_profiles|smarty:nodefaults item='plugin_profile'}--> <!--{if $plugin_profile_category.id == plugin_profile.category_id}--> <tr> <td><a href="{$freo.core.http_file}/profile/{$plugin_profile.user_id}">{$plugin_profile.user_id}</a></td> <td>{$users[$plugin_profile.user_id].name}</td> <td>{$plugin_profile.kana}</td> <td><!--{if $plugin_profile.category_id}--><a href="{$freo.core.http_file}/profile?category={$plugin_profile.category_id}">{$plugin_profile_categories[$plugin_profile.category_id].name}</a><!--{/if}--></td> <td><!--{foreach from=$plugin_profile_tags[$plugin_profile.user_id]|smarty:nodefaults item='plugin_profile_tag' name='loop'}--><a href="{$freo.core.http_file}/profile?tag={$plugin_profile_tag|smarty:nodefaults|escape:'url'}">{$plugin_profile_tag}</a><!--{if !$smarty.foreach.loop.last}-->, <!--{/if}--><!--{/foreach}--></td> </tr> <!--{/if}--> <!--{/foreach}--> </tbody> </table> <!--{/foreach}--> ||< のようにすると、カテゴリーごとのプロフィールを一覧表示できます。 なお、この時のカテゴリーは、カテゴリーの並び順で表示されます。
編集キー(投稿時に設定したキーを入力してください。)
コンテンツ
新規投稿