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

    Im using ModX 0.9.5 with Ditto 1.0.2 and SEF URL’s (e.g. http://domain/parent/child.htm) and am having problems when trying to display a list of the 5 latest content items in a sidebar on every page. I can get the content to display from Ditto fine, and it gives me a "Read More..." link at the bottom of each little description as you can see here in my template:

    <p><img src="[(base_url)]assets/templates/tgl/images/grnarr.gif" alt="" border="0" /> [+description+]<br />
    [ [+link+] ]</p>


    If i goto my homepage and click a "Read More..." link it works fine, and the path would be (for example) http://domain/parent/child.htm. However, if i then click the "Read More..." link on this page, it will take me to http://domain/parent/parent/child.htm which obviously does not exist and doesnt work!

    I have downloaded the latest versions of everything and am stuck! Can anyone help?

    huh smiley
      • 33337
      • 3,975 Posts
      Add the code below in your templates <head> tag.
      <base href="[(site_url)]" />
      


      Hope this helps.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 25006
        • 10 Posts
        That worked a treat - i thought it must be template related and it used to work, but only stopped since i created my own template!

        Many thanks - ModX rocks! grin