{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 $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} [ {$contentCount} ]
{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}
{/if} {/form} {if $assignableContent} {foreach from=$pigeonList item=pigeon}
{counter name=dogEatsPigeon}
{$pigeon.display_path}
{$pigeon.data|escape}
{/foreach} {/if} {/if}
{/strip}