QUOTE(toosweets @ Oct 11 2005, 04:42 AM)
ok, now is it possible to move the catorgory picture above the subcatagory?
Sure, which skin are you using? The answer to that is in the second file I posted about, viewCat.tpl
OK, you've got the Killer skin.
OPEN skins/Killer/styleTemplates/viewCat.tpl, you'll see this code:
QUOTE
<!-- BEGIN: view_cat -->
<div class="boxContent">
<span class="txtContentTitle">{TXT_CAT_TITLE}</span>
<br clear="all" />
<!-- BEGIN: sub_cats -->
<div id="subCats">
<!-- BEGIN: sub_cats_loop -->
<span class="subCat">
<a href="index.php?act=viewCat&catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a><br />
<a href="index.php?act=viewCat&catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a> ({NO_PRODUCTS})
</span>
<!-- END: sub_cats_loop -->
</div>
<!-- END: sub_cats -->
<br clear="left" />
<!-- BEGIN: cat_img -->
<img src="{IMG_CURENT_CATEGORY}" border="0" alt="{TXT_CURENT_CATEGORY}" />
<!-- END: cat_img -->
<div><strong>{LANG_CURRENT_DIR}</strong> {CURRENT_DIR}</div>
<div class="pagination">{PAGINATION}</div>
<!-- BEGIN: productTable -->
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="tblList">
<tr>
<td class="tdListTitle"><strong>{LANG_IMAGE}</strong></td>
<td class="tdListTitle"><strong>{LANG_DESC}</strong></td>
<td class="tdListTitle"><strong>{LANG_PRICE}</strong></td>
<td class="tdListTitle"> </td>
</tr>
The part in red displays the category image. You need to cut & paste, move it up like this:
QUOTE
<!-- BEGIN: view_cat -->
<div class="boxContent">
<span class="txtContentTitle">{TXT_CAT_TITLE}</span>
<br clear="all" />
<!-- BEGIN: cat_img -->
<img src="{IMG_CURENT_CATEGORY}" border="0" alt="{TXT_CURENT_CATEGORY}" />
<!-- END: cat_img -->
<br clear="all" />
<!-- BEGIN: sub_cats -->
<div id="subCats">
<!-- BEGIN: sub_cats_loop -->
<span class="subCat">
<a href="index.php?act=viewCat&catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a><br />
<a href="index.php?act=viewCat&catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a> ({NO_PRODUCTS})
</span>
<!-- END: sub_cats_loop -->
</div>
<!-- END: sub_cats -->
<br clear="left" />
<div><strong>{LANG_CURRENT_DIR}</strong> {CURRENT_DIR}</div>
<div class="pagination">{PAGINATION}</div>
<!-- BEGIN: productTable -->
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="tblList">
<tr>
<td class="tdListTitle"><strong>{LANG_IMAGE}</strong></td>
<td class="tdListTitle"><strong>{LANG_DESC}</strong></td>
<td class="tdListTitle"><strong>{LANG_PRICE}</strong></td>
<td class="tdListTitle"> </td>
</tr>
I added a <br clear="all" /> when I moved it. May not be necessary, I'd have to test it to see