Results 1 to 5 of 5

the index page

This is a discussion on the index page within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; How do I set up index.php? I found it in my local folder. Why, when I click the “top” link, ...

      
  1. #1
    New Member
    Join Date
    Jun 2008
    Posts
    22
    Rep Power
    0


    Default the index page

    How do I set up index.php? I found it in my local folder. Why, when I click the “top” link, do I go to a page that says, "This domain is under construction and will be available soon?" How do I set up a home page and lay it out? CAn I use the same template as the rest of my site? How am I supposed to integrate the index page into my site? In the "bts_docs" help file it refers to "index_default.tpl.php and index_nested.tpl.php" but it doesn't really say where these files are or how to use them.

    Rick

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: the index page

    1) how did you set up the site? Is it under the root, or is it under /catalog ?
    2) If it is under the root then you shouldn't be getting that message as that is generally the message most hosting companies put up for new clients
    3) if it's under the /catalog directory, then that is the "store's root" That means that you can either have a splash page at the server root, or a simple redirect to the /catalog index.php file.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  3. #3
    New Member
    Join Date
    Jun 2008
    Posts
    22
    Rep Power
    0


    Default Re: the index page

    thanks, that will help. I don't remember seeing a choice for where to set the osC up. It's set up in catalog, like you said. I wasn't aware that I could do it anywhere else. I'm reluctant to move it, in case I screw something up.

    with regard to the other question in the bts_docs it says:
    • index.php has 2 content pages : index_default.tpl.php and index_nested.tpl.php.
    • index_default.tpl.php handles the overall center structure of index.php including where the define_mainpage module is displayed, where the default_specials, new_products, and upcoming_products modules are displayed and the overall structure of the html.
    • index_nested.tpl.php handles the layout of the category listing pages.
    Do you know where these files are? I can't find them.

    thanks for your reply,
    Rick

  4. #4
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: the index page

    you never access the BTS files directly from the URI.

    So your URI should be www . my-domain-name.com/catalog/index.php

    This would tell OscMAX to start in the /catalog/index.php

    BTS would then go to wherever you defined your template directory in the admin and pick up the main_page.tpl.php

    BTS would then decide what type of index page it was dealing with and call that from the content area for that template if a template file existed there, or the fallback if not.

    so a call tree would look like:
    /catalog/index.php
    /catalog/templates/mytemplate/main_page.tpl.php
    /catalog/templates/fallback/content/index_default.tpl.php

    If you were to want to make changes to the default front page you would copy
    /catalog/templates/fallback/content/index_default.tpl.php
    to
    /catalog/templates/mytemplate/content/index_default.tpl.php

    and make changes in that file. Then the call tree would look like
    /catalog/index.php
    /catalog/templates/mytemplate/main_page.tpl.php
    /catalog/templates/mytemplate/content/index_default.tpl.php

    When working on the file, you can turn it on and off by renaming it
    /catalog/templates/mytemplate/content/index_default.tpl.php = file on
    /catalog/templates/mytemplate/content/off_index_default.tpl.php = file off

    Since BTS will ONLY pick up the file when it is named index_default.tpl.php in the /catalog/templates/mytemplates/content area, a simple rename to off_index_default.tpl.php will force BTS to pick up the fallback file in /catalog/templates/fallback/content area.
    Last edited by met00; 07-06-2008 at 09:23 AM. Reason: (the dummy URI example got picked up)
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  5. #5
    New Member
    Join Date
    Jun 2008
    Posts
    22
    Rep Power
    0


    Default Re: the index page

    thanks for the help.

    Rickarooni

Similar Threads

  1. Blank main Index page
    By RobMacAF in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 10-25-2007, 02:44 AM
  2. catalog index page
    By melm81 in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 12-19-2005, 07:56 AM
  3. index.html the default page help
    By ZARZOR in forum osCommerce 2.2 Installation Help
    Replies: 10
    Last Post: 01-23-2005, 08:19 PM
  4. Help! First page index.php is blank
    By freddae in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-03-2005, 03:41 PM
  5. how to link categories from the index page?
    By whazzy in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 10-31-2003, 08:30 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
  •