{strip}

{tr}Assign Content to Categories{/tr}

{if !$pigeonList} {formfeedback warning="No categories have been set up yet. You need to create some before you can assign content to them."} {else} {form legend="Assign Content"}
{formlabel label="Restrict listing" for="content_type"} {forminput} {tr}Records{/tr} {/forminput} {forminput} {/forminput} {forminput} {html_options options=$contentTypes name=content_type id=content_type selected=$contentSelect} {/forminput} {forminput}   {formhelp note="You can restrict the content listing to a given content type or apply a filter."} {/forminput}
{formlabel label="Category" for="root_structure_id"} {forminput} {html_options values=$pigeonRoots options=$pigeonRoots name=root_structure_id id=root_structure_id selected=$smarty.request.root_structure_id} {formhelp note="Pick category you want to use to insert content into."} {/forminput}
{/form} {formfeedback hash=$feedback} {form} {if $gBitSystem->isFeatureActive( 'custom_member_sorting' ) && $smarty.request.include eq 'members'} {formfeedback warning="Using this insertion method will reset any custom sorting you have done so far."} {/if} {if $gBitSystem->isFeatureActive('pigeonholes_reverse_assign_table')} {foreach from=$assignableContent item=item}
{counter name=dogEatsPigeon}
{$contentTypes[$item.content_type_guid]}: {$item.title|escape}
{foreachelse}
No assignable content.
{/foreach} {if $assignableContent} {foreach from=$assignableContent item=item} {/foreach} {foreach from=$pigeonList item=pigeon} {foreach from=$assignableContent item=item} {/foreach} {foreachelse} {/foreach}
{tr}Available Categories{/tr}
Categories{counter}
{$pigeon.display_path}
{tr}No Content can be found with your selection criteria{/tr}
{/if} {else} {if $assignableContent} {foreach from=$pigeonList item=pigeon} {/foreach} {/if} {foreach from=$assignableContent item=item} {foreach from=$pigeonList item=pigeon} {/foreach} {foreachelse} {/foreach}
{tr}Available Content{/tr}
{smartlink ititle="Title" isort=title idefault=1 max_rows=$smarty.request.max_rows content_type=$contentSelect find_objects=$find_objects include=$smarty.request.include page=$page} {smartlink ititle="Content Type" isort=content_type_guid max_rows=$smarty.request.max_rows content_type=$contentSelect find_objects=$find_objects include=$smarty.request.include page=$page}{counter}
{$item.title|escape} {assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid}
{tr}No Content can be found with your selection criteria{/tr}
{if $assignableContent} {foreach from=$pigeonList item=pigeon}
{counter name=dogEatsPigeon}
{$pigeon.display_path} {if !empty($pigeon.parsed_data) && $gBitSystem->isFeatureActive('pigeonholes_display_description')}
{$pigeon.parsed_data} {/if}
{/foreach} {/if} {/if} {if $assignableContent}
{if $smarty.request.include == 'members'} Go To Next Page After Insert {/if}
{/if} {if $smarty.request.include == 'members'} {pagination max_records=$smarty.request.max_records include=$smarty.request.include content_type=$contentSelect root_structure_id=$smarty.request.root_structure_id} {/if} {/form} {/if}
{/strip}