Results 1 to 5 of 5

Thread: display catagory folders on another page

  1. #1
    Join Date
    May 2007
    Posts
    5

    Default display catagory folders on another page

    Hi

    I'm using the Kosmos template and what I want to do is just provide a search box on the main page instead of the catagory listing, how can I move the catagory listing to another page so that I can have a "view full catagories" option.

    I have tried moving the <%$category%> to another page but the list doesn't appear. (with the kist I mean the main catagories with the folders showing.

    I'm new to php, can someone advise, Thank You

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    To disable the categories just remove <%$category%>.

    Category wont show up anywhere else because the corresponding .php files aren't coded to display the main category.

    Why not change your .htaccess so when they visit www.yoursite.com they are redirected to a custom search page?

  3. #3
    Join Date
    May 2007
    Posts
    5

    Default

    Thank you for your reply,

    I'm not looking to disable just move the catagories from the front page on the Kosmos template to another page.

    Think of it as instead of clicking for the advanced search but to view the full catagory list, this is what i'm looking for.

    index = search box alternative page = full listing as it was on the index page.

    hope this can be done,

    jai

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    As I said, the browse pages are not coded to display the index categories. Of course you could add the code but for what reason?

    If you did that then every subdirectory would show all the categories and would in effect become the index. Then you would create a nasty loop and show the directories every time you clicked on a directory and would never see the listings.

    If all you want to show to a user is the search then code a custom page and redirect them via .htaccess to this custom page which would in effect now be your landing page.

    This does exactly what you want, without having to mess with the script or cause issues of loops by displaying main level categories in subcategories.

    Of course you could move the categories to it's own custom page, but then that requires more work than simply making a landing page. If that's what you want to do then copy index.php and index.html, rename them, change the code in them to reflect their new names, change the code in the origional index.html to remove <%category%> and then you should be good.

  5. #5
    Join Date
    May 2007
    Posts
    5

    Thumbs up

    Thanks again for your quesk reply,

    I understand what your saying, and appreciate your help/support, your last paragraph sounds like the best way, but I will re-think my idea.


    Again Thanks for your time and help

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2007, 10:16 PM
  2. Template modifier sub folders
    By player77 in forum v3.2
    Replies: 0
    Last Post: 06-03-2005, 06:47 PM
  3. How to display $cat in Detail page?
    By cucupidon in forum v3.2
    Replies: 1
    Last Post: 03-25-2005, 09:56 AM
  4. Customizing Catagory Display
    By ezykiwi in forum v5.x
    Replies: 0
    Last Post: 07-21-2004, 11:29 AM
  5. Problems with page display
    By tsmedstad in forum v5.x
    Replies: 4
    Last Post: 07-05-2002, 03:30 AM

Posting Permissions

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