We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27807
    • 11 Posts
    Hello,

    I Have a litle problem with Breadcrumbs.
    I used this for a text on my site: you are here: Home -> category 1 -> product 3

    The problem is that my title of the page has been optimized for google.
    So the title name is: product 3 | some information here about product 3
    Breadcrumbs shows the complete title name..

    Is it posible to modify the Breadcrumbs script so it shows the menu tiltle and not the page title?

    I used now the in my templates:
    [!Breadcrumbs? &maxCrumbs=`15`!]
    • // $titleField [string]
      // To change default page field to be used as
      // a breadcrumb title, default is pagetitle
      (isset($titleField)) ? $titleField : $titleField = ’pagetitle’;
      So call it [[Breadcrumbs? &titleField=`menutitle`]]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 27807
        • 11 Posts
        Thank you sottwell, I love you..

        I read also the snippet code, but i did not see it.