{assign var=requiredFields value=$cbcollection->load_required_fields($data)} {assign var=otherFields value=$cbcollection->load_other_fields($data)} {if strlen($data.category) < 1} {$data.category = '#1#'} {/if}

## Editing > {$data.collection_name}

{$data.views|number_format}
Views {$comments = $data.comments_count} {if $comments > 0} {$data.comments_count} {else} 0 {/if}
Comments {if $data.active=='yes'} {else}{/if}
Active {if $data.featured=='No'} {else}{/if}
Featured {if $FlaggedPhotos != NULL} {$FlaggedPhotos[list].total_flags} {section name=list loop=$FlaggedPhotos} {$FlaggedPhotos[list].total_flags} {/section}
Flagged {else} 0
Flagged {/if}

Collection Id |
{foreach from=$requiredFields item=field}
{$field.title} | {$formObj->createField($field)}
{/foreach}

User Id | {$data.userid}
User Name | {$data.userid|get_username}
DOB | {$data.dob}
Email | {$data.email}
Gender | {$data.sex}
Rating | {$data.rating}

Collection Stats
Total Objects
Total Comments
Other Fields
{foreach from=$otherFields item=field} {$field.title} : {$field.hint_1}
{$formObj->createField($field)}
{$field.hint_2} {/foreach}
Collection Preview
{if $objects} {section name=list loop=$objects} {if $data.type == 'photos'} {get_photo details=$objects[list] output='html' title=$photos[list].photo_title} {/if} {if $data.type == 'videos'} {/if} {/section} {assign var=rest value=$data.total_objects-4} Manage Items{if $rest && $rest>0} - {$rest} more item{if $rest>1}s{/if}{/if} {else} Collection has 0 items {/if}