![]() |
![]() |
![]() |
|
|||||||
| User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Mar 2006
Posts: 1
![]() |
Hi
I editing view-link.tpl for view checkbox value and radio buttons in a different columns. +++++++++++++++++ view-link.tpl ++++++++++++++ {foreach from=$fields item=field} {assign var="key" value=$field.name} <tr> {assign var="field_name" value='field_'|cat:$field.name} <td><strong>{$lang.$field_name}:</strong></td> <td> {if $link.$key || ($link.$key eq '0')} {if ($field.type eq 'text') || ($field.type eq 'textarea')} {if $config.html_tags} {$link.$key} {else} {$link.$key|escape:"html"} {/if} {elseif $field.type eq 'checkbox'} {array_to_lang values=$link.$key name=$field.name} {elseif $field.type eq 'storage'} <a href="{$config.base}{$config.dir}uploads/{$link.$key}">{$lang.download}</a> {elseif $field.type eq 'image'} <img src="{$config.base}{$config.dir}uploads/{$link.$key}" {* width="{$field.image_width}" height="{$field.image_height}"*} /> {elseif $field.type eq 'combo'} {assign var="field_combo" value="field_"|cat:$field.name|cat:'_'|cat:$link.$ key} {$lang.$field_combo} {elseif $field.type eq 'radio'} {assign var="field_radio" value="field_"|cat:$field.name|cat:'_'|cat:$link.$ key} {$lang.$field_radio} {/if} {else} {$lang.not_available} {/if} </td> </tr> {/foreach} +++++++++++++++++ view-link.tpl ++++++++++++++ Thanks Javi |
|
|
|
![]() |
| Tags |
| checkbox, radio button, view-link.tpl |
| Thread Tools | |
| Display Modes | |
|
|