We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16182
    • 56 Posts
    I can’t get the YAMS replacement for the Breadcrumbs snippet working with MODx 1.0.2 and YAMS 1.1.7 alpha RC7. It simply displays nothing.

    One issue (I’m only speculating) might be the usage of [tt]$modx->config(’site_path’)[/tt] instead of [tt]base_path[/tt] as described in the MODx documentation. Another thing I’m not clear about is the setting of [tt]langid[/tt] which seems to be required inside the YAMS-adapted snippet code, but is to mentioned in the documentation.

    Any pointers to correct code and usage?
      • 16545
      • 358 Posts
      You can use wayfinder for this, like:
      [!Wayfinder? &startId=`0` &config=`breadcrumb_(yams_id)`!]
        • 16182
        • 56 Posts
        It comes down to the correct call of the breadcrumbs snippet in the template or resource:
        <div id="breadcrumbs">[[BreadcrumbsYAMS? &langid=`(yams_id)`]]</div>  
        


        The important bit is the [tt]langid[/tt] parameter!
          • 9994
          • 133 Posts
          Oké, i was looking on this site http://svn.modxcms.com/docs/pages/viewpage.action?pageId=13205626
          but it didnt explained the langid so doesnt work.

          Im useing the second option thow, very nice.

          ##EDIT first option is better, 2nd one only shows pages which are visible into the menu.
            Best CMS eva!