Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Uk
    Posts
    79
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    Hi, my boss wants to have Joomla "Will I get told off for that", to be the front end and zencart to run in the wrapper, i'm not sure how he's going to get the links in joomla to bring up the corresponding pages from zencart, but I guess thats another question altogether, but he does want me to remove the header and footer from zencart completely just leaving the main page section, any ideas !

    Cheers
    J#xx

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    To create a custom "home page" link in this header navigation bar, you could simply "hard code" the URL to your main site index page... in your case, the joomla index page.

    I am assuming that currently, your JOOMLA site resides in the ROOT DIRECTORY, and the zencart shop resides in a SUB DIRECTORY.



    Find this file, and FTP a COPY to your hard drive:

    includes/templates/template_default/common/tpl_header.php

    Find the navigation code section:

    PHP Code:
    <!--bof-navigation display-->

    <div id="navMainWrapper">

    <div id="navMain">

        <ul class="back">

        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>

    <?php if ($_SESSION['customer_id']) { ?>

        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>

        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>

    <?php

          
    } else {

            if (
    STORE_STATUS == '0') {

    ?>

        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>

    <?php } } ?>



    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>

        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>

        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>

    <?php }?>

    </ul>

    </div>

    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>

    <br class="clearBoth" />

    </div>

    <!--eof-navigation display-->
    Find the following line:
    PHP Code:
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    And COMMENT IT OUT, using HTML COMMENT TAGS (<!-- and -->)

    HTML Code:
    <!--  begin edit999   <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> end edit 999 -->
    Notice that I also put in begin edit999 and end edit999 inside the comment tags.

    You don't have to do this, but it can be very useful later when you are looking for where you made changes. You can use the admin>>>tools>>>developer tool kit to search files for references to edit999 and that will quickly reveal the file where that edit reference number applied.

    So, the 999 is a unique number I apply when I make edits to code. I keep a spreadsheet where I manually record my edit codes (from edit001 onwards) , the file they apply to and why I made the edit. I can then call up this spreadsheet to quickly see what edits I have made, where and why, right across my customised core files.

    ANYWAY...

    comment out that line as shown, then under it, put in your own hyperlink eg:

    PHP Code:
        <li><a href="http://www.YOURWEBSITEJOOMLAHOMEPAGE">Home</a></li
    SAVE the file on your hard drive, then FTP it to:

    includes/templates/YOUR_CUSTOM_TEMPLATE/common/

    NOTE: THIS DOES NOT CHANGE "HOME" LINKS ELSEWHERE (such as in breadcrumbs) - ONLY THE HOME LINK IN THE HEADER NAVIGATION.

    ----------------------------------------------------

    To link from Joomla back to ZC, the "reverse" is true.

    Links in joomla to the ZC shop will always be something like:

    <a href="http://www.YOURWEBSITE.com/shop/index.php?main_page=xxxxxxxxxxx

    where xxxxxxxxxxx is the resource you wish to link to - be it a category, a product, a page... whatever.

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    As this change affects ONLY the header link, you may consider changing the name of the link...

    Instead of:
    PHP Code:
    <li><a href="http://www.YOURWEBSITEJOOMLAHOMEPAGE">Home</a></li
    consider:
    PHP Code:
    <li><a href="http://www.YOURWEBSITEJOOMLAHOMEPAGE">Main Site</a></li

 

 

Similar Threads

  1. v150 renamed admin folder after upgrading
    By jansant in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 22 Mar 2012, 07:00 AM
  2. Renamed Admin Folder - Issues
    By bigdiogi in forum General Questions
    Replies: 7
    Last Post: 23 Feb 2011, 11:53 PM
  3. Renamed admin folder Oddity
    By buildingblocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Dec 2009, 03:40 AM
  4. Renamed Admin folder but "upload to directory" no update of new folder
    By ruriimasu in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Apr 2009, 10:29 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