We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45199
    • 4 Posts
    I've got a staging and live site I'm working on (not my code base). I've accidentally replaced the live server with some staging code (no backup (slap me)) and I'm getting weird urls for articles on the sites 'blog' page.

    Basically everything's being called into the page correctly but the page header link is being screwed.

    Rather than being

    http://www.example.com/a-nice-url

    it's giving me

    http://www.example.com/news,recent,pr,etc

    which appears to be the list of categories of the article.

    Where/How can I easily fix this? (I'm not sure where I should be looking)

    I'm only calling [[*content]] and can't find where that is.

    Linking to an article I know is there with the correct url works still.

    any ideas would be greatly appreciated.
      • 45199
      • 4 Posts
      I've narrowed it down to this - <span class="post-title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></span> speciffically the [[+pagetitle]] giving me the comma'd,output,any ideas?
        • 45199
        • 4 Posts
        retract that it's the [[+id]] of that snippet
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Mark Hamstra Reply #4, 13 years ago
          That looks like a getResources tpl, right?

          [[+id]] refers to a resource ID (getResources loops over those), and the [[~ ]] is a link tag meaning it will generate the link to the resource with id [[+id]]. That should always return the right url, and I'm not sure how it could result in a list of categories instead...
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 40944
            • 78 Posts
            Quote from: sturobson at Sep 24, 2013, 05:22 AM
            retract that it's the [[+id]] of that snippet
            Are you sure you are looking at the correct template?

            How exactly have you narrowed it down to that specific part? Did you temporarily replace it? Or did you add a piece of comment code to track where it is outputted?

            PS
            As you say you it is not your code base, how familiar are you with modx?