We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    http://symphonicheaven.com/news/monthly/

    I had to switch the p= that MODx normally uses due to Google’s AdSense for Search. But how do I fix Reflect so it uses something like q=?

    http://symphonicheaven.com/news/monthly/list?q=news/monthly/&wp_month=11&wp_year=2008&wp_day=false&wp_start=0

    It works if I give a URL like that, as an example. But not w/ p=.

    EDIT: I switched p= and q=. Reflect is currently using q=, which gives a 404 since MODx was edited to use p=.
      My Snippets
      -> PopUpChunk v1.0
      • 28033
      • 925 Posts
      No one knows how to do this?
        My Snippets
        -> PopUpChunk v1.0
        • 28033
        • 925 Posts
        *le bump*

        Someone here *has* to know how to fix this small issue...
          My Snippets
          -> PopUpChunk v1.0
          • 22303 MODX Staff
          • 10,725 Posts
          I for one don’t understand the issue. MODx does not use p= for anything. In fact, it uses q= for friendly urls (i.e. foo.html is really index.php?q=foo.html after being rewritten), so you can’t have Reflect hijack the q variable if you are using friendly urls. You would likely need to change the code to look for a different request variable if it uses $_GET[’p’] and you need to use that variable for something else (a la AdSense).
            • 28033
            • 925 Posts
            Ugh, I just realized I changed it to p= for MODx’s rewrites. So I’m needing to do the same change to Reflect, since it’s using q= (which MODx doesn’t know since I edited it to use p=) --- hence the 404 error.
              My Snippets
              -> PopUpChunk v1.0
              • 7231
              • 4,205 Posts
              Your problem may be with the makeUrl api function since Jot uses this to create the URL. You would need to edit several places in Jot to get it to wrork with p or edit the makeUrl function in the API but that is not advisable since you never know what will happen as a result wink

              I use Google with a Q and modx with a q and that works fine, Google is not case sensitive. Are you embedding the results into your page or redirecting to Google for the results?
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don't know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 28033
                • 925 Posts
                Quote from: dev_cw at Dec 22, 2008, 09:49 AM

                Your problem may be with the makeUrl api function since Jot uses this to create the URL. You would need to edit several places in Jot to get it to wrork with p or edit the makeUrl function in the API but that is not advisable since you never know what will happen as a result  wink

                I use Google with a Q and modx with a q and that works fine, Google is not case sensitive. Are you embedding the results into your page or redirecting to Google for the results?

                It was Ditto (technically the Reflect part), not Jot, that had the issue, btw. And I’m embedding the results in the page, which is why I needed to edit MODx’s URL function to get around it (since it would normally trigger MODx’s 404 error, since the page doesn’t technically "exist".
                  My Snippets
                  -> PopUpChunk v1.0