I have created several custom fields in CGblog and I'm looking to style and display each of the differently and I was wondering if there was a way to separate them in the summary or details template. I want to be able to call out each of them separately. Is that possible?
right now i have default code:
Code: Select all
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="CGBlogSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
Again, is there a way to pull each custom field separately? Thanks!