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

Answered uri_override

    • 42560
    • 49 Posts
    Hi,

    How can i fill the freeze url variable throught a database query?

    image below: https://drive.google.com/open?id=1Shjaiy-mDqtM05tS5S9Q8yvLohxCoaA3

    i mean, when i click that checkbox and click save button, an INSERT(uri_override = true???) is made for that resource?

    thanks

    This question has been answered by nuan88. See the first response.

    • discuss.answer
      • 46886
      • 1,154 Posts
      you'd have to call the db to get the resource, then check the flag for the option, I don't think its too hard...a bit of php would do it
        • 42560
        • 49 Posts
        Quote from: nuan88 at Aug 30, 2018, 07:20 PM
        you'd have to call the db to get the resource, then check the flag for the option, I don't think its too hard...a bit of php would do it

        yeah, im figuring out, uri_override is holding 1 when checkeed XD

        they hold zero if unchecked. my first thought was if they existed in db if unchecked, not like custom template vars that dont exist if no value is filled in XD

        thanks
          • 46886
          • 1,154 Posts
          Yup Modx has a lot of sneaky advantages, in this case it really is just a flag on that resource, so its not hard at all to change. You can assign new variables to resources as well, total flexibility.

          In some systems it could be a joke to get that functionality, like three steps all to work around the weaknesses of their systems.

          Wait til you play with custom snippets that do whatever you want, you can execute php basically anywhere on a page