We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I need to add hreflang in my head for all languages.
    How can I do this in YAMS?

    <link rel="alternate" href="http://example.com/en/contact/map" hreflang="en">
    <link rel="alternate" href="http://example.com/nl/contact/kaart" hreflang="nl">
    <link rel="alternate" href="http://example.com/de/contact/mappe" hreflang="de">
    
      Evolution user, I like the back-end speed and simplicity smiley
      • 9995
      • 1,613 Posts
      SOLUTION:

      my call:
      [[YAMS? &get=`repeat` &repeattpl=`hreflang` &currenttpl=`hreflang`]]

      hreflang Chunk:
      <link rel="alternate" href="(yams_docr)" hreflang="(yams_id)">
      


      Not sure I need current thow.
        Evolution user, I like the back-end speed and simplicity smiley
        • 51347
        • 82 Posts
        Hi,

        have somebody one solution to get the x-default with yams?

        Something like this:

        <link rel="alternate" hreflang="en-de" href="http://www.mysite.de/en/" />
        <link rel="alternate" hreflang="x-default" href="http://www.mysite.de/" />