Problema prekių skiltyje. Kažkodėl nenori rodyti įkeltos nuotraukos ir neatidaro produkto lango

Kur gali būti bėda?
Moderator: Augustas
Code: Select all
{if isset($catformstart)}
{$catformstart}
{$catdropdown}{$catbutton}
{$catformend}
{/if}
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
{foreach from=$items item=entry}
{*
the summary template has access to custom fields via the $entry->fields hash
and to categories via the $entry->categories array of objects. Also
attribute information is available via $entry->attributes.
you should use the get_template_vars and the print_r modifier to see
what is available
*}
<div class="item">
<div class="item-top"></div>
<div style="clear:left"></div>
<div class="item-content">
{foreach from=$entry->fields key='name' item='field'}
<img src="{$entry->file_location}/{$field->thumbnail}" alt="{$field->value}" />
{/foreach}
<h3><a href="{$entry->detail_url}">{$entry->product_name}</a></h3>
</div>
<div style="clear:left"></div>
<div class="item-bottom"></div>
</div>
{/foreach}
Code: Select all
{* this is a sample product detail template *}
<div class="ProductDirectoryItem">
Name: {$entry->product_name}<br />
File Location: {$entry->file_location}<br/>
{if $entry->price ne ''}
Price {$currency_symbol}: {$entry->price}<br />
{/if}
{if $entry->weight ne ''}
Weight {$weight_units}: {$entry->weight}<br />
{/if}
{if $entry->details ne ''}
Details:<br />
{$entry->details}<br />
{/if}
{* accessing all of the fields in a list *}
{if count($entry->fields)}
<h4>Custom Fields</h4>
{foreach from=$entry->fields key='name' item='field'}
<div class="product_detail_field"><p>
{$mod->Lang('name')}: {$name}<br/>
{$mod->lang('type')}: {$field->type}<br/>
{$mod->lang('value')}: {$field->value}<br/>
{if $field->type == 'image' && isset($field->thumbnail)}
<img src="{$entry->file_location}/{$field->thumbnail}" alt="{$field->value}"/>
{/if}
</p></div>
{/foreach}
{/if}
{* print out attributes *}
{if isset($entry->attributes)}
<h4>Attributes</h4>
{foreach from=$entry->attributes key='name' item='attribset'}
<h6>{$name}</h6>
<div class="product_detail_field"><p>
{foreach from=$attribset key='label' item='adjustment'}
{$label}: {$adjustment}<br/>
{/foreach}
</p></div>
{/foreach}
{/if}
{* print out the categories *}
{if isset($entry->categories)}
<h4>Categories</h4>
{foreach from=$entry->categories item='category'}
<div class="product_detail_category"><p>
{$mod->Lang('id')}: {$category->id}<br/>
{$mod->Lang('name')}: {$category->name}<br/>
{* if there are data fields associated with this category, display them too *}
{if isset($category->data) && count($category->data)}
<div class="product_detail_category_fields">
<strong>{$mod->Lang('data')}</strong><br/>
{foreach from=$category->data item='onedataitem'}
<div class="product_detail_category_onefield">
{if $onedataitem.field_type == 'image'}
<a href="{$category->file_location}/{$onedataitem.field_value}"><img src="{$category->file_location}/thumb_{$onedataitem.field_value}" alt="thumb" /></a>
{elseif $onedataitem.field_type == 'file'}
<a href="{$category->file_location}/{$onedataitem.field_value}">{$onedataitem.field_value}</a>
{else}
<strong>{$onedataitem.field_prompt}</strong>: {$onedataitem.field_value}<br/>
{/if}
</div>
{/foreach}
</div>
{/if}
</p></div>
{/foreach}
{/if}
</div>
Code: Select all
{$field->thumbnail}