CMSms 1.11.9
I am using the products module to list resort timeshares for purchase on a site.
I need the detail template results to appear in a different page to accommodate an iframe view of the resort site.
Summary template functioning:
Code: Select all
{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="ProductDirectoryItem">
<a href="{$entry->detail_url}">{$entry->product_name}</a><br />{$entry->fields.City->value}  {$entry->fields.State->value}
</div>
{* include the cart
<div>
{Cart2 sku=$entry->sku}
</div>
*}
{/foreach}
Code: Select all
{* this is a sample product detail template *}
{assign var='products' value=$mod}
<div class="ProductDirectoryItem">
{* note: {content} must be called before the hierarchy view is called *}
{if $entry->hierarchy_id > 0}{$active_hierarchy=$entry->hierarchy_id}{/if}
{if is_array($entry->breadcrumb)}
Breadcrumb: {' >> '|implode:$entry->breadcrumb}<br/>
{/if}
<div >
<__iframe style="width: 977px; margin-right: 0px; border: 0px;" src="{$entry->fields.Link->value}" height="1200"></__iframe>
</div>
Thank you.
Code: Select all
{* this is a sample product detail template *}
{assign var='products' value=$mod}
<div class="ProductDirectoryItem">
{* note: {content} must be called before the hierarchy view is called *}
{if $entry->hierarchy_id > 0}{$active_hierarchy=$entry->hierarchy_id}{/if}
{if is_array($entry->breadcrumb)}
Breadcrumb: {' >> '|implode:$entry->breadcrumb}<br/>
{/if}
{redirect_page page='iframe'}{$entry->fields.Link->value}
detailpage="iframe-hawaii"
Code: Select all
{Products category='Hawaii' detailpage="iframe-hawaii"}