Results 1 to 10 of 10

Thread: Style of category listing

  1. #1
    Join Date
    Jan 2007
    Location
    Düsseldorf, Germany
    Posts
    52

    Default Style of category listing

    Where do I define the appearance of the category listing? I found out where to exchange the folder image. But where is the style for the words?



    thanks a lot

    macangelo
    Last edited by macangelo; 01-27-2007 at 05:58 AM.

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    It's in template files. See inside /themes/kosmos/setting.php
    PHP Code:
    /*===================================================
      category appearance
    ===================================================*/

    $cat_table_width        "100%";
    $cat_cellspacing        "3";
    $cat_link_style         "font-size: 11px; color: #000000;";
    $cat_path_link_style    "font-size: 11px; color: #000000;";
    $subcat_link_style      "font-size: 11px; color: #000000;";
    $category_separator     " > ";
    $number_of_links_format " <font color=\"#000000\"><b>(<%\$number_of_links%>)</b></font>";
    $number_of_links_format_search_result " ";
    $cat_columns            2;
    $max_sub_cat            5;
    $cat_default_image      $site_url.'/themes/'.$active_theme.'/images/folder.gif';
    $cat_description_format "<a style=\"{font-size: 11px; color: #567E96;}\"><%\$cat_description%></a>"

  3. #3
    Join Date
    Jan 2007
    Location
    Düsseldorf, Germany
    Posts
    52

    Default

    Thanks!

  4. #4
    mphed Guest

    Default

    I&#180;m also having trouble with this. I can&#180;t get rid of the icon "folder.gif". I&#180;m trying to use "transparent.gif", but the category tree keeps showing "folder.gif". Other changes, like font-size etc works fine.

    I would also like to be able to minimize the space between each category row. I was thinking something like a padding with a negative value, but that&#180;s not allowed.

    $cat_link_style = "font-size: 11px; color: #000000; padding: -10px;";

  5. #5
    Join Date
    Jan 2007
    Location
    Düsseldorf, Germany
    Posts
    52

    Default

    Hi mphed,

    Did you try to replace the file "folder.gif" - it worked for me (I did it before I realized I can set a folder image file in
    Code:
    $cat_default_image      = $site_url.'/themes/'.$active_theme.'/images/folder.gif';
    )

    did you try to change the value for cellspacing to minimize the distance between the rows?
    Code:
    $cat_cellspacing        = "3";
    They should add up to extra 6 pixel...

    Best
    macangelo

  6. #6
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You can make it empty
    Code:
    $cat_default_image      = '';

  7. #7
    mphed Guest

    Default

    Dody´s example should definitely work, but it doesn´t. The source code still gives me
    PHP Code:
    name="cat_1"><img src="themes/current/images/folder.gif" border="0" alt="" 
    I also emptied the cache. Still can´t change that folder-image. Please advice.

  8. #8
    HTW Guest

    Default

    Quote Originally Posted by mphed View Post
    Dody´s example should definitely work, but it doesn´t. The source code still gives me
    PHP Code:
    name="cat_1"><img src="themes/current/images/folder.gif" border="0" alt="" 
    I also emptied the cache. Still can´t change that folder-image. Please advice.
    After you do Dody's example, you have to edit every category in the Admin section and empty the field where it says folder.gif.

  9. #9
    HTW Guest

    Default

    Quote Originally Posted by mphed View Post
    Dody´s example should definitely work, but it doesn´t. The source code still gives me
    PHP Code:
    name="cat_1"><img src="themes/current/images/folder.gif" border="0" alt="" 
    I also emptied the cache. Still can´t change that folder-image. Please advice.
    If your just trying to change the folder image to another image, just go to themes/current/images/ and delete the folder.gif, then upload your transparent.gif, then rename that to folder.gif and you should be good to go.

  10. #10
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    I'm sorry, it may because I use the latest development version (www.nicecoder.com/svn). You can make $cat_default_image empty. If you use 5.3.0, you may follow HTW solution above with transparent image.

Similar Threads

  1. Replies: 2
    Last Post: 08-18-2006, 10:04 AM
  2. Category on new and updated listing
    By frost13 in forum Blocks and Modification
    Replies: 6
    Last Post: 03-31-2006, 06:20 AM
  3. Category Listing Order
    By tyersin in forum v5.x
    Replies: 0
    Last Post: 08-20-2005, 05:34 PM
  4. Sub Category css style
    By Battousai in forum v5.x
    Replies: 3
    Last Post: 11-30-2003, 11:06 AM
  5. category listing
    By stix in forum v3.2
    Replies: 3
    Last Post: 06-23-2003, 08:26 PM

Posting Permissions

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