エントリー

freoのエントリーとページの管理画面に閲覧制限情報を表示する

各エントリーとページにどの種類の閲覧制限をしたか、どの種類のフィルターをかけたかがわかるようにエントリーとページの管理画面に表示させる方法です。

エントリー管理の場合

  1. templates/internals/admin/entry.html の75行目と84行目あたりの
    <th>状態</th>
    <th>作業</th>

    の部分(2箇所)を、

    <th>状態</th>
    <!--{if $freo.config.entry.restriction or $freo.config.entry.filter}-->
    <th>閲覧制限</th>
    <!--{/if}-->
    <th>作業</th>
    に変更(赤字部分を追加)します。
  2. 同ファイルの100行目あたりの
    <td><!--{if $entry.approved == 'no'}-->未承認<!--{elseif $entry.status == 'publish'}-->公開<!--{elseif $entry.status == 'private'}-->未公開<!--{elseif $entry.status == 'future'}-->予約公開<!--{/if}--></td>

    の下に、

    <!--{if $freo.config.entry.restriction or $freo.config.entry.filter}-->
    <td><!--{if $entry.restriction == 'user'}-->ユーザー<!--{elseif $entry.restriction == 'group'}--><!--{foreach from=$entry_associates[$entry.id].group|smarty:nodefaults key='entry_group' item='entry_group' name='loop'}--><strong>[G]</strong>{$freo.refer.groups[$entry_group].name}<!--{if !$smarty.foreach.loop.last}--><br /><!--{/if}--><!--{/foreach}--><!--{elseif $entry.restriction == 'password'}-->パスワード<!--{elseif $entry_associates[$entry.id].filter}--><!--{foreach from=$entry_associates[$entry.id].filter|smarty:nodefaults key='entry_filter' item='entry_filter' name='loop'}--><strong>[F]</strong>{$freo.refer.filters[$entry_filter].name}<!--{if !$smarty.foreach.loop.last}--><br /><!--{/if}--><!--{/foreach}--><!--{/if}--></td>
    <!--{/if}-->
    を追加します。

    するとエントリー管理画面の表示で
    ファイル 78-1.jpg

    だった部分が

    ファイル 78-2.jpg
    になります。([G]はグループ、[F]はフィルターと言う意味)

ページ管理の場合

  1. templates/internals/admin/page.html の68行目と78行目あたりの
    <th>状態</th>
    <th>並び順</th>

    の部分(2箇所)を、

    <th>状態</th>
    <!--{if $freo.config.page.restriction or $freo.config.page.filter}-->
    <th>閲覧制限</th>
    <!--{/if}-->
    <th>並び順</th>
    に変更(赤字部分を追加)します。
  2. 同ファイルの86~92行目あたりの
    <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><a href="{$freo.core.http_file}/admin/page?pid={$parent.pid}">上の階層へ</a></td>
    </tr>
    

    の部分を、

    <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <!--{if $freo.config.page.restriction or $freo.config.page.filter}-->
      <td></td>
      <!--{/if}-->
      <td></td>
      <td><a href="{$freo.core.http_file}/admin/page?pid={$parent.pid}">上の階層へ</a></td>
    </tr>
    
    に変更(赤字を追加)します。【2018/02/09追加】
  3. 同ファイルの100行目あたりの
    <td><!--{if $page.approved == 'no'}-->未承認<!--{elseif $page.status == 'publish'}-->公開<!--{elseif $page.status == 'private'}-->未公開<!--{elseif $page.status == 'future'}-->予約公開<!--{/if}--></td>

    の下に、

    <!--{if $freo.config.page.restriction or $freo.config.page.filter}-->
    <td><!--{if $page.restriction == 'user'}-->ユーザー<!--{elseif $page.restriction == 'group'}--><!--{foreach from=$page_associates[$page.id].group|smarty:nodefaults key='page_group' item='page_group' name='loop'}--><strong>[G]</strong>{$freo.refer.groups[$page_group].name}<!--{if !$smarty.foreach.loop.last}--><br /><!--{/if}--><!--{/foreach}--><!--{elseif $page.restriction == 'password'}-->パスワード<!--{elseif $page_associates[$page.id].filter}--><!--{foreach from=$page_associates[$page.id].filter|smarty:nodefaults key='page_filter' item='page_filter' name='loop'}--><strong>[F]</strong>{$freo.refer.filters[$page_filter].name}<!--{if !$smarty.foreach.loop.last}--><br /><!--{/if}--><!--{/foreach}--><!--{/if}--></td>
    <!--{/if}-->
    を追加します。

ページ移動

関連エントリー

コメント

  • コメントはまだありません。

コメント登録

  • コメントを入力してください。
  • 一旦登録したコメントは、あとで編集できませんのでご注意下さい。
登録フォーム

基本的には「全体に公開」されますが、内容によっては管理人の方で公開を制限する場合がありますので、その旨ご了承下さい。

ユーティリティ

2024年03月

- - - - - 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 - - - - - -

キーワード検索

キーワード検索フォーム

ユーザー

  • cccのアバター

新着画像

ブログパーツ

Twitter

Twilogを見る

Feed