Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
corpse




Joined: Apr 06, 2008
Posts: 33

PostPosted: Sun Apr 27, 2008 11:37 am
Reply with quote

okay, I did a search and didn't see this anywhere, What files do I need to edit to fix the category view?

What I mean in detail is as follows.

Image 1

Shows as if you clicked the "Shop Home" in the top navigation. What i want to do here is move those images from being on top to the left of the text.

**Please don't just say edit the templet**
Thats not helping anything.




Image 2

This image shows as if you click the "Categories" button in the top navigation. Needless to say, it brings you to the same page but with out the images. I am still trying to figure out why you would have made it do this, but oh well. If I could I would have the "Shop Home button go to my first page which I made as an introduction page before they actually go to the main shop.

But how would I go about fixing this so it includes the images, (on the left)?

Just wondering, would it be easier if I just edit the navigation to put the "Categories" button to point where the "Shops Home" button is pointed and point the "Shops Home" button to my main start page that I created as an introduction. Then edit the Shops Home section, (image 1 from above), to put the images to show on the left?

Also another note, Besides just moving those images to the left, I would like to add in a few line breaks to space them out. If you point me to the files that need to be edited, I am about 99% sure i can edited them to what I need, but references to which files and possibly sections like what lines will save time of searching.
 
View user's profile Send private message Visit poster's website
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon Apr 28, 2008 8:48 pm
Reply with quote

Basically, you have to edit the template...

Open modules/Digital_Shop/templates/default/shop/main.tpl

find...
Code:
<table align="center" width="80%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" width="50%">
  {foreach from=$cat_array item=cat name=catlist}
    {if $smarty.foreach.catlist.iteration is even}
      </td>
      <td align="center" width="50%">
    {elseif $smarty.foreach.catlist.iteration is odd && $smarty.foreach.catlist.iteration != 1}
      </td>
    </tr>
    <tr>
      <td align="center" width="50%">
    {/if}
    <a href="{$base_link}cat={$cat.id}" title="">{if $cat.image != ''}<img src="{$cat.image}" alt="" /><br />{/if}{$cat.title}</a> ({$cat.item_count})
    {if $cat.details != ''}<br /> {$cat.details} {/if}<br />
  {/foreach}
  {if $smarty.foreach.catlist.iteration is odd}
      </td><td> 
  {/if}
      </td>
    </tr>
  </table>


If you want the images to show on the left, just remove the br tag that comes after the image...
Code:
<img src="{$cat.image}" alt="" /><br />


And the "Categories" link doesn't have images because it is intended to show the categories as a tree like structure. In your case, it would probably be easy enough to change the link to point to the shop home. You'll find those links in modules/Digital_Shop/templates/default/header.tpl
 
View user's profile Send private message Visit poster's website
corpse




Joined: Apr 06, 2008
Posts: 33

PostPosted: Mon Apr 28, 2008 9:32 pm
Reply with quote

danke...
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©