Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    North West
    Posts
    9
    Plugin Contributions
    0

    Default Re: Breadcrumb Replacement

    Hi Kobra thanks for the quick reply.

    I already had access to this code, the problem was the customer wants to display the page a user is browsing as static html text.

    Is this already implemented?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Breadcrumb Replacement

    As these pages do not exist as static html where one could enter code per page but are created server side dynamically you can not hard code these individually.

    You have hard coded the term "Page Title" but this will now display for all pages

    What I was suggesting that you replace the standard breadcrumb "echo" code with your own code to only display the category name or the product name with if else validation

    And No this is not an admin selection

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

    Default Re: Breadcrumb Replacement

    As Kobra said, you will need to edit tpl_main_page.php with a test statement series to insert the desired static text. Whatever truncated breadcrumbs code is there can be replaced by your code.

    You can test for $current_page_base == 'whatever is in the address bar of your desired page', and some other refinements such as $cPath == '##' to determine the text to display.

    Template Monster is notorious for hacking & slashing ZC templates and removing standard functions while making their pretty layouts, and this appears to be a very old version to boot.

  4. #4
    Join Date
    Jun 2007
    Location
    North West
    Posts
    9
    Plugin Contributions
    0

    Default Re: Breadcrumb Replacement

    Thanks for the input
    I got the desired result by editing the breadcrumb trail class, it was using a .= to add to trail, I just commented out some of the lines and links then edited it so that it only shown the last addition.

    Thanks for your help

 

 

Similar Threads

  1. v151 How To Have Breadcrumb Stay On Breadcrumb?
    By capncrunch0 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 May 2013, 02:55 AM
  2. upgrade/replacement
    By simpledomaining in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 24 Apr 2013, 10:56 PM
  3. Breadcrumb/CSS Changes Not Removing Breadcrumb
    By patschraier in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2007, 08:49 PM

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