On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.

Answered uri_override

Subscribe: RSS
  • 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
      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
      • 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
        • 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