We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31640
    • 100 Posts
    Maybe this has been answered already
    but i didn’t find it with on the forum...

    I have a listing of links (with the getResources snippet)
    displaying al external links.
    It works perfect
    but when you look at the source the links are displayed as internal links
    and nog the actual url’s, can this be achieved,
    this is important for my SEO
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: visvoer at Oct 13, 2010, 01:21 AM

      Maybe this has been answered already
      but i didn’t find it with on the forum...

      I have a listing of links (with the getResources snippet)
      displaying al external links.
      It works perfect
      but when you look at the source the links are displayed as internal links
      and nog the actual url’s, can this be achieved,
      this is important for my SEO
      Wayfinder renders the external links as you expect, so you could easily build the list of links using Wayfinder, or by creating a custom tpl for getResources that creates the links from the content rather than the makeUrl() method.
        • 22303 MODX Staff
        • 10,725 Posts
        In particular, here is a way to render weblinks appropriately in getResources tpls (please note that you must use &includeContent for this to work):
        <a href="[[+class_key:eq=`modWebLink`:then=`[[+content]]`:else=`[[~[[+id]]]]`]]">[[+menutitle:default=`[[+pagetitle]]`]]</a>