Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/page/view.tpl
{* Smarty template *}
{assign var=lang value=$viewed->language}
<table cellpadding="0" cellspacing="0" border="0" class="tableView">
    <tr>
        <th>{message key='page.form.identifier'}</th>
        <td>{$viewed->identifier|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.language'}</th>
        {assign var=lang value=$viewed->language}
        <td>{message key="language.$lang"}</td>
    </tr>
    <tr>
        <th>{message key='page.form.title'}</th>
        <td><a href="{buildUrl identifier=$viewed->identifier language=$viewed->language friendly='page'}" target="_blank">{$viewed->title|escape}</a></td>
    </tr>
    <tr>
        <th>{message key='page.form.keywords'}</th>
        <td>{$viewed->keywords|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.description'}</th>
        <td>{$viewed->description|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.layout'}</th>
        <td>{$viewed->getLayoutTitle()}</td>
    </tr>
    <tr>
        <th>{message key='page.form.fixed'}</th>
        <td>{$viewed->isFixedYesno()|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.menu'}</th>
        <td>{$viewed->getMenuTitle()|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.menuIndex'}</th>
        <td>{$viewed->menu_index|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.published'}</th>
        <td>{$viewed->isPublishedYesno()|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.modificationDate'}</th>
        <td>{formatDate date=$viewed->modification_date|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.publicationDate'}</th>
        <td>{formatDate date=$viewed->publication_date|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.expirationDate'}</th>
        <td>{formatDate date=$viewed->expiration_date|escape}</td>
    </tr>
    <tr>
        <th>{message key='page.form.active'}</th>
        <td>{$viewed->isActiveYesno()|escape}</td>
    </tr>
</table>

<h2>{message key='page.form.fields'}</h2>

{foreach from=$viewed->getFields() item=field}
<h3>{$field->identifier}</h3>
<div class="contentHolder">
    {$field->data}
</div>
{/foreach}

{include file="after_view.tpl"}
Return current item: Blandware AtLeap Lite - CMS on PHP