|
|
#1 |
|
Junior Member
Join Date: Aug 2009
Location: Sweden
Posts: 13
Rep Power: 1 ![]() |
I just to install module customcats, but i would like to add other col for
example states, but i dont know how do it, would you like to tell me step by step, I am not very good in php code I want this Photo State Title Price
__________________
68C V 4.1.5 ![]() Template Default |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,191
Rep Power: 120 ![]() |
You would need to edit the custom category file you created. It is basically html with the smarty tags added.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2009
Location: Sweden
Posts: 13
Rep Power: 1 ![]() |
Well you answear wasnt so clear but i just to edit noprice.tpl and work!
this is the code that I modified I hope that somebody will help in the future. noprice.tpl: <table class="main" width="100%"> <tr> {if $sDisPhoto == "Y"} <th scope="col">{$smarty.const.LANG_PHOTO}</th> {/if} {if $sDisState == "Y"} <th scope="col">{$smarty.const.LANG_STATE}</th> {/if} {if $sDisTitle == "Y"} <th scope="col"><a href="{$file}?{$querystring_title}" class="sortheader">{$smarty.const.LANG_TITLE}</a> {if $sqlsort=="title"}<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</th> {/if} {if $sDisPrice == "Y"} <th scope="col">{$smarty.const.LANG_PRICE}</th> {/if} <th scope="col">{$smarty.const.LANG_VIEW_LISTING}</th> </tr> {foreach from=$results item="entry"} <tr> {if $sDisPhoto == "Y"} <td{if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}">{if $entry.image != ""}<img src="thumbs/small_{$entry.image|escape:"url"}" border="0" alt="{$entry.title}" />{else}<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophotosmall.gif" border="0" alt="{$entry.title}" />{/if}</a></td> {/if} {if $sDisState == "Y"} <td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.state}</td> {/if} {if $sDisTitle == "Y"} <td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.title}</td> {/if} {if $sDisPrice == "Y"} <td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.price}</td> {/if} <td{if $entry.class<>""} class="{$entry.class}"{/if}> <a href="{$entry.link}">{$smarty.const.LANG_VIEW_LIST ING}</a> </td> </tr> {foreachelse} <tr> <td colspan="9" align="center">{$smarty.const.LANG_SEARCH_NO_RESUL TS}</td> </tr> {/foreach} </table>
__________________
68C V 4.1.5 ![]() Template Default |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|