Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2017
    Location
    White City
    Posts
    15
    Plugin Contributions
    0

    Default New page sub folder setting breadcrumbs

    Is there any one that can help me edit the code for setting sub folder breadcrumbs manually?

    I am stumped. On what code to put in place in the "header_php.php" to set the breadcrumb to show correct path.

    example:
    Home
    "Coupler Conversion" top menu. (https://www.kadee.com/convpl.htm)
    sub-menu "HO-Scale Coupler Conversions" (https://www.kadee.com/hocc.htm)
    sub-sub-menu "A-LINE" (https://www.kadee.com/hocc_aline.htm)

    Website shows:
    Home / A-Line
    It should be showing
    Home / Coupler Conversion Information / HO-Scale Coupler Conversions / A-Line

    So I need to set the correct breadcrumbs for sub-menu "HO-Scale Coupler Conversions" & sub-sub-menu "A-LINE".

    v155e

    Thanks in advance.

  2. #2
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: New page sub folder setting breadcrumbs

    It goes something like this (IIRC although it has been a while since I did this):

    In includes\modules\pages\YourPage\header_php.php

    Code:
      $breadcrumb->add(NAVBAR_TITLE, zen_href_link(FILENAME_TITLE, '', 'NONSSL'));
      $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_TITLE_1, '', 'NONSSL')););
      $breadcrumb->add(NAVBAR_TITLE_2); /* note no link */
    In includes\languages\english\yourTemplate\YourPage.php

    Code:
    define('NAVBAR_TITLE', 'Title');
    define('NAVBAR_TITLE_1', 'Title_1');
    define('NAVBAR_TITLE_2', 'Title_2');
    Repeat middle lines (Title_1) for additional breadcrumbs.

    Hope this helps

  3. #3
    Join Date
    Sep 2017
    Location
    White City
    Posts
    15
    Plugin Contributions
    0

    Default Re: New page sub folder setting breadcrumbs

    Thank you dw08gm that is what I needed.

    I did find a type-0 in the $breadcrumb code for TITLE_1 above.

    below is the fixed code. ( I run a SSL so I also changed the NONSSL to SSL.)

    $breadcrumb->add(NAVBAR_TITLE, zen_href_link(FILENAME_TITLE, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_TITLE_1, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2); /* note no link */

    I hope this will helps someone else out I know I searched and searched for this answer.

 

 

Similar Threads

  1. v151 AgoraCart running while building my new store? Sub-folder install possible?
    By jenn624 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 Feb 2013, 03:40 AM
  2. How to add new file in admin sub folder
    By keval in forum Basic Configuration
    Replies: 0
    Last Post: 18 Aug 2011, 12:51 PM
  3. EZ-Pages breadcrumbs for a sub-page
    By hedron in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 14 Jul 2010, 09: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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR