Results 1 to 5 of 5

Thread: Custom category path

  1. #1
    Join Date
    Sep 2004
    Posts
    35

    Default Custom category path

    Hi,

    I would like to implement a custom category path. This is because I want the separator to be an image instead of a ">". I know where to change this but then I have the same code in my title. And this obviously doesn't work with an image tag. So for the title tag I would like to use the standard path and for the pages I want the path to be seperated by an image. Any ideas how to do this?

    Bart

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    umm not looked at the code, but im thinking underneath the php code thats currently used, you jsut need to create new variable, $pathwithimage = and then use the altered php code to do it with the image

    then you need to declare $pathwithimage as one that will be used in the templates near the top of the file usually, or at the bottom where it loads the templates.

    and then use <%pathwithimage%>
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Sep 2004
    Posts
    35

    Default

    I've added this to the main section of the browse.php

    $cath_path = str_replace(">", "*", $cat_path);

    and added <%cath_path%> to the browse.html. I got nearly the result I'm looking for.

    instead of home > category1 > category2 > category3 it now shows
    home * category1 * category2 * category3

    Obviously I'll replace the * with the path to the image but for some reason I've lost the hrefs. The path doesn't contain any links anymore.

    What do I need to change to get the links back in the path again?

  4. #4
    Join Date
    Sep 2004
    Posts
    35

    Default

    Anyone? I feel I'm so close... (might be wrong ofcourse)

  5. #5
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    The easiest solution of them all is to use the code changes you added and caused the title to go wrong, BUT add proper titles to all the catagories so the automatic ones never get displayed. this will help no-end in the search engines as well, just a thought.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. category path
    By inspireme in forum v5.x
    Replies: 1
    Last Post: 01-11-2005, 12:34 PM
  2. Category Path Broken After Upgrade
    By hobartimus in forum v5.x
    Replies: 43
    Last Post: 12-31-2004, 07:14 PM
  3. Category path on detail.php
    By cezzy in forum v5.x
    Replies: 1
    Last Post: 07-05-2004, 02:50 AM
  4. category path
    By barnkin in forum Indexu Lite
    Replies: 4
    Last Post: 07-22-2002, 01:20 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
  •