Results 1 to 5 of 5

Categories on mainpage

This is a discussion on Categories on mainpage within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi everybody, I'm new with oscdox and looking for a way to remove the categorie names and images from the ...

      
  1. #1
    New Member
    Join Date
    Oct 2005
    Posts
    10
    Rep Power
    0


    Default Categories on mainpage

    Hi everybody,
    I'm new with oscdox and looking for a way to remove the categorie names and images from the mainpage. I've looked everywere but couldn't find anything.

    Can anyone help me with this?

    Thanks

    Frie
    www.brasilgospel.nl

  2. #2
    New Member
    Join Date
    Nov 2005
    Posts
    9
    Rep Power
    0


    Default

    Hi Frie

    What categories names and images are you talking about? On your site the only thing i can see is the categories box from the left column

  3. #3
    New Member
    Join Date
    Oct 2005
    Posts
    10
    Rep Power
    0


    Default

    If you open a categorie on the left column the sub-categories will be showed on the left column but also on the mainpage...
    I want to remove the sub-categories on the mainpage

  4. #4
    New Member
    Join Date
    Nov 2005
    Posts
    9
    Rep Power
    0


    Default

    Go to templates/your template name/content/index_nested.tpl.php

    In this file find this line of code: (around line 60)

    echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

    Add // in front of it so it looks like:

    // echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

    This should solve it

  5. #5
    New Member
    Join Date
    Oct 2005
    Posts
    10
    Rep Power
    0


    Default

    Great!!! It worked. Thank you very much!!!

Similar Threads

  1. Want to show categories AND sub categories in index.php!!
    By calle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-27-2004, 12:51 PM
  2. mainpage.php bug?
    By titaniumtommy in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-08-2004, 03:38 AM
  3. CATEGORIES BOX does not display categories list
    By glk in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-05-2004, 11:09 AM
  4. Please, just a little help with the mainpage
    By smalto in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-22-2004, 05:49 PM
  5. ERROR_FILE_NOT_WRITEABLE mainpage.php
    By Anonymous in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 12-15-2003, 02:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •