Thread: Directories??

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Directories??

    Then you are wanting to work with:

    includes/languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php

    for adding Content to the main page.


    Other options are display specific to the Home page by configuring:

    includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    For example:
    To turn off the left column for the home page only, you would insert the following:
    if ($this_is_home_page) {
    $flag_disable_left = true;
    }

    To turn off the left and right columns for the home page only, you would insert the following:
    if ($this_is_home_page) {
    $flag_disable_left = true;
    $flag_disable_right = true;
    }

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Directories??

    Try /includes/templates/your_template/index/tpl_main_page.php .

    Unfortunately, this will apply to all index pages including category listing and product listing.
    For editing home page layout, you will need to add/modify code in the main tpl_main_page.php, with tests for
    PHP Code:
    if ($this_is_home_page){
      
    //do home page stuff
    }else{
      
    //do default stuff

    The CSS can be customized for the home page by adding a file named index_home.css; but adding an /index_home/ folder will have no effect.

  3. #13
    Join Date
    Jul 2009
    Location
    Far Far Away
    Posts
    20
    Plugin Contributions
    0

    Default Re: Directories??

    Quote Originally Posted by Website Rob View Post
    Then you are wanting to work with:

    includes/languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php

    for adding Content to the main page.


    Other options are display specific to the Home page by configuring:

    includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    For example:
    I dont want to add content as much as change the layout for the home page. I have the layout working I just need the pagename of the home page.

  4. #14
    Join Date
    Jul 2009
    Location
    Far Far Away
    Posts
    20
    Plugin Contributions
    0

    Default Re: Directories??

    Quote Originally Posted by gjh42 View Post
    Try /includes/templates/your_template/index/tpl_main_page.php .

    Unfortunately, this will apply to all index pages including category listing and product listing.
    For editing home page layout, you will need to add/modify code in the main tpl_main_page.php, with tests for
    PHP Code:
    if ($this_is_home_page){
      
    //do home page stuff
    }else{
      
    //do default stuff

    The CSS can be customized for the home page by adding a file named index_home.css; but adding an /index_home/ folder will have no effect.
    BRILLIANT! this is exaclty what I required thank you

    Regards,
    Johan

    P.S Was I very unclear in what I required or was it just out of the norm what I was asking for?

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Directories??

    I think it was just out of the norm.

    But a radically different layout for the home page is common enough that I really think there should be a mechanism for using an /index_home/ folder. This may be addressed in a totally different manner with the restructuring in v2.0.
    Last edited by gjh42; 8 Jul 2009 at 04:16 PM.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Custom Directories
    By Webfoot in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Apr 2009, 07:23 AM
  2. Missing Directories
    By Nora in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2008, 05:26 PM
  3. Installation Directories
    By GarthG in forum Installing on a Windows Server
    Replies: 6
    Last Post: 17 Dec 2007, 09:26 AM
  4. Changing directories
    By gfiggins in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Sep 2007, 04:49 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
  •  
disjunctive-egg