We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Hi!
    Is it possible to grant access to a user to edit the lexicon of a single namespace?

    I'd like a user would be able to modify the lexicon strings of a single component in its own language.

    To achieve it in my custom access policy it seems I have to grant:

    - access to lexicon
    - access to languages
    - access to namespaces

    but this way the user could modify all lexicons of all languages of all namespaces...
      TilliLab | MODX Ambassador
      website
      • 3749
      • 24,544 Posts
      I think you'd have to do that with a custom CMP, though there may be a way to do it with MIGX.

      A really simple-minded way to do it would be a snippet that presents the existing values from the language file and lets the user select a key to alter then lets them input the new value. Submitting would then alter the database to add the new lexicon key and string (or update the existing one).

      Note that only values that differ from the ones in the file should go in the DB.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting