We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3864
    • 16 Posts
    I’ve created 2 form customisation rules to hide the ’Container’ checkbox on Static Resources:

    Action: resources/staticresources/create
    Name: isfolder
    Containing panel: modx-panel-resource
    Rule: Field Visible
    Value: 0

    and...

    Action: resources/staticresources/update
    Name: isfolder
    Containing panel: modx-panel-resource
    Rule: Field Visible
    Value: 0

    When I create a New Static Resource - use the icon set buttons under the Resources tab - the ’Container’ field is hidden. (manager/index.php?a=48&class_key=modStaticResource)

    If I then edit the saved Static Resource the ’Container’ field is visible.

    It looks as though the initial action id is set to the correct value of 48. When I edit the saved Static Resource the action id will be set to whatever it had been in the previous request(relative path?) but the system will redirect it to 30 which is the action id for updating Resources.

    If I manually change the action id in the URL from 30 to 47 the Form Customisation rule will apply and the container field will be hidden.

    Is this the expected behaviour of the system or are the links of saved items in the Resources tree picking up the wrong action id?
      • 3749
      • 24,544 Posts
      That sounds like a bug to me (or a not-yet-fully-implemented feature). wink

      I suspect that the system doesn’t distinguish between various kinds of resources at the point where the rule applies.

      Could you file that in Jira via the Bugs and Requests button at the top of this page?
        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
        • 3864
        • 16 Posts
        Hi BobRay, it finally clicked today, this issue is related to a bug I had reported yesterday relating to a similar issue. See http://svn.modxcms.com/jira/browse/MODX-2202

        Looks like actions such as resource/staticresource/create etc. have been deprecated. Apparently the best way to apply FC rules to derivative types is through a constraint.

        Have the resource/create & update actions been deprecated?
          • 3749
          • 24,544 Posts
          Quote from: boombana at Jul 30, 2010, 02:20 AM

          Hi BobRay, it finally clicked today, this issue is related to a bug I had reported yesterday relating to a similar issue. See http://svn.modxcms.com/jira/browse/MODX-2202

          Looks like actions such as resource/staticresource/create etc. have been deprecated. Apparently the best way to apply FC rules to derivative types is through a constraint.

          Have the resource/create & update actions been deprecated?

          I don’t think so -- just the sub-actions like resource/staticresource/create AFAIK. I think if you go to System->Actions and play around, you can see which ones are active.
            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
            • 3864
            • 16 Posts
            Hi BobRay,

            Just to clarify which actions are active and which have been deprecated (or no longer active) I’ve made 2 lists below. The first is a list of available actions under System > Actions, the 2nd is a list of actions which are stored in the database but are not visible under System > Actions. It seems that quite a few actions have been deprecated.

            Active

            [table]
            [tr][td]ID[/td][td]NS[/td][td]PID[/td][td]CONTROLLER[/td][/tr]
            [tr][td]1[/td][td]core[/td][td]0[/td][td]welcome[/td][/tr]
            [tr][td]2[/td][td]core[/td][td]0[/td][td]system[/td][/tr]
            [tr][td]3[/td][td]core[/td][td]0[/td][td]browser[/td][/tr]
            [tr][td]7[/td][td]core[/td][td]0[/td][td]element[/td][/tr]
            [tr][td]25[/td][td]core[/td][td]0[/td][td]resource[/td][/tr]
            [tr][td]31[/td][td]core[/td][td]0[/td][td]security[/td][/tr]
            [tr][td]50[/td][td]core[/td][td]0[/td][td]search[/td][/tr]
            [tr][td]60[/td][td]core[/td][td]0[/td][td]system/logs/index[/td][/tr]
            [tr][td]63[/td][td]core[/td][td]0[/td][td]help[/td][/tr]
            [tr][td]64[/td][td]core[/td][td]0[/td][td]context[/td][/tr]
            [tr][td]37[/td][td]core[/td][td]3[/td][td]system/refresh_site[/td][/tr]
            [tr][td]38[/td][td]core[/td][td]3[/td][td]system/phpinfo[/td][/tr]
            [tr][td]40[/td][td]core[/td][td]3[/td][td]system/file[/td][/tr]
            [tr][td]56[/td][td]core[/td][td]3[/td][td]system/import[/td][/tr]
            [tr][td]61[/td][td]core[/td][td]3[/td][td]system/event[/td][/tr]
            [tr][td]62[/td][td]core[/td][td]3[/td][td]system/info[/td][/tr]
            [tr][td]65[/td][td]core[/td][td]3[/td][td]system/action[/td][/tr]
            [tr][td]66[/td][td]core[/td][td]3[/td][td]workspaces[/td][/tr]
            [tr][td]68[/td][td]core[/td][td]3[/td][td]system/contenttype[/td][/tr]
            [tr][td]70[/td][td]core[/td][td]3[/td][td]system/settings[/td][/tr]
            [tr][td]15[/td][td]core[/td][td]25[/td][td]element/snippet/create[/td][/tr]
            [tr][td]16[/td][td]core[/td][td]25[/td][td]element/snippet/update[/td][/tr]
            [tr][td]42[/td][td]core[/td][td]65[/td][td]security/access/policy/update[/td][/tr]
            [tr][td]67[/td][td]core[/td][td]68[/td][td]workspaces/lexicon[/td][/tr]
            [tr][td]69[/td][td]core[/td][td]68[/td][td]workspaces/namespace[/td][/tr]
            [tr][td]41[/td][td]core[/td][td]70[/td][td]system/file/edit[/td][/tr]
            [/table]

            In-active

            [table]
            [tr][td]ID[/td][td]NS[/td][td]PID[/td][td]CONTROLLER[/td][/tr]
            [tr][td]4[/td][td]core[/td][td]6[/td][td]context/create[/td][/tr]
            [tr][td]5[/td][td]core[/td][td]6[/td][td]context/update[/td][/tr]
            [tr][td]6[/td][td]core[/td][td]6[/td][td]context/view[/td][/tr]
            [tr][td]8[/td][td]core[/td][td]10[/td][td]element/chunk[/td][/tr]
            [tr][td]11[/td][td]core[/td][td]10[/td][td]element/plugin[/td][/tr]
            [tr][td]14[/td][td]core[/td][td]10[/td][td]element/snippet[/td][/tr]
            [tr][td]17[/td][td]core[/td][td]10[/td][td]element/template[/td][/tr]
            [tr][td]21[/td][td]core[/td][td]10[/td][td]element/tv[/td][/tr]
            [tr][td]24[/td][td]core[/td][td]10[/td][td]element/view[/td][/tr]
            [tr][td]58[/td][td]core[/td][td]10[/td][td]element/propertyset/index[/td][/tr]
            [tr][td]9[/td][td]core[/td][td]11[/td][td]element/chunk/create[/td][/tr]
            [tr][td]10[/td][td]core[/td][td]11[/td][td]element/chunk/update[/td][/tr]
            [tr][td]12[/td][td]core[/td][td]20[/td][td]element/plugin/create[/td][/tr]
            [tr][td]13[/td][td]core[/td][td]20[/td][td]element/plugin/update[/td][/tr]
            [tr][td]18[/td][td]core[/td][td]28[/td][td]element/template/create[/td][/tr]
            [tr][td]19[/td][td]core[/td][td]28[/td][td]element/template/update[/td][/tr]
            [tr][td]20[/td][td]core[/td][td]28[/td][td]element/template/tvsort[/td][/tr]
            [tr][td]22[/td][td]core[/td][td]32[/td][td]element/tv/create[/td][/tr]
            [tr][td]23[/td][td]core[/td][td]32[/td][td]element/tv/update[/td][/tr]
            [tr][td]28[/td][td]core[/td][td]36[/td][td]resource/data[/td][/tr]
            [tr][td]29[/td][td]core[/td][td]36[/td][td]resource/empty_recycle_bin[/td][/tr]
            [tr][td]30[/td][td]core[/td][td]36[/td][td]resource/update[/td][/tr]
            [tr][td]39[/td][td]core[/td][td]36[/td][td]resource/tvs[/td][/tr]
            [tr][td]43[/td][td]core[/td][td]36[/td][td]resource/weblink/update[/td][/tr]
            [tr][td]44[/td][td]core[/td][td]36[/td][td]resource/weblink/create[/td][/tr]
            [tr][td]45[/td][td]core[/td][td]36[/td][td]resource/symlink/update[/td][/tr]
            [tr][td]46[/td][td]core[/td][td]36[/td][td]resource/symlink/create[/td][/tr]
            [tr][td]47[/td][td]core[/td][td]36[/td][td]resource/staticresource/update[/td][/tr]
            [tr][td]48[/td][td]core[/td][td]36[/td][td]resource/staticresource/create[/td][/tr]
            [tr][td]51[/td][td]core[/td][td]36[/td][td]resource/create[/td][/tr]
            [tr][td]59[/td][td]core[/td][td]36[/td][td]resource/site_schedule[/td][/tr]
            [tr][td]26[/td][td]core[/td][td]46[/td][td]security/usergroup/create[/td][/tr]
            [tr][td]27[/td][td]core[/td][td]46[/td][td]security/usergroup/update[/td][/tr]
            [tr][td]32[/td][td]core[/td][td]46[/td][td]security/role[/td][/tr]
            [tr][td]35[/td][td]core[/td][td]46[/td][td]security/login[/td][/tr]
            [tr][td]52[/td][td]core[/td][td]46[/td][td]security/user[/td][/tr]
            [tr][td]53[/td][td]core[/td][td]46[/td][td]security/permission[/td][/tr]
            [tr][td]54[/td][td]core[/td][td]46[/td][td]security/resourcegroup/index[/td][/tr]
            [tr][td]55[/td][td]core[/td][td]46[/td][td]security/forms[/td][/tr]
            [tr][td]71[/td][td]core[/td][td]46[/td][td]security/profile[/td][/tr]
            [tr][td]72[/td][td]core[/td][td]46[/td][td]security/message[/td][/tr]
            [tr][td]33[/td][td]core[/td][td]53[/td][td]security/user/create[/td][/tr]
            [tr][td]34[/td][td]core[/td][td]53[/td][td]security/user/update[/td][/tr]
            [tr][td]36[/td][td]core[/td][td]57[/td][td]system/event/details[/td][/tr]
            [tr][td]57[/td][td]core[/td][td]59[/td][td]system/import/html[/td][/tr]
            [tr][td]49[/td][td]core[/td][td]212[/td][td]workspaces/package/view[/td][/tr]
            [/table]

            Is this correct? Have all of these actions been deprecated or is it just that their parent ids are incorrect?

            Thanks,
            Greg
              • 3749
              • 24,544 Posts
              Wow. Thanks for all the work. smiley

              I’d like to know the answer to that question myself.

              OpenGeek or splittingred will have to answer. I have a guess, but I’m not at all sure.


                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
                • 3864
                • 16 Posts
                Well hopefully I’ll get an answer soon as I’m a bit baffled by the intended behaviour given that, as an example, the default action for creating a static resource is 48 (resource/staticresource/create) and that has apparently been deprecated.
                  • 3864
                  • 16 Posts
                  Apologies in advance for posting this again. Can anyone clarify which actions are active and which have been deprecated? I’ve made 2 lists below. The first is a list of available actions under System > Actions, the 2nd is a list of actions which are stored in the database but are not visible under System > Actions. It seems that quite a few actions have been deprecated.

                  Active

                  ID NS PID CONTROLLER
                  1 core 0 welcome
                  2 core 0 system
                  3 core 0 browser
                  7 core 0 element
                  25 core 0 resource
                  31 core 0 security
                  50 core 0 search
                  60 core 0 system/logs/index
                  63 core 0 help
                  64 core 0 context
                  37 core 3 system/refresh_site
                  38 core 3 system/phpinfo
                  40 core 3 system/file
                  56 core 3 system/import
                  61 core 3 system/event
                  62 core 3 system/info
                  65 core 3 system/action
                  66 core 3 workspaces
                  68 core 3 system/contenttype
                  70 core 3 system/settings
                  15 core 25 element/snippet/create
                  16 core 25 element/snippet/update
                  42 core 65 security/access/policy/update
                  67 core 68 workspaces/lexicon
                  69 core 68 workspaces/namespace
                  41 core 70 system/file/edit

                  In-active

                  ID NS PID CONTROLLER
                  4 core 6 context/create
                  5 core 6 context/update
                  6 core 6 context/view
                  8 core 10 element/chunk
                  11 core 10 element/plugin
                  14 core 10 element/snippet
                  17 core 10 element/template
                  21 core 10 element/tv
                  24 core 10 element/view
                  58 core 10 element/propertyset/index
                  9 core 11 element/chunk/create
                  10 core 11 element/chunk/update
                  12 core 20 element/plugin/create
                  13 core 20 element/plugin/update
                  18 core 28 element/template/create
                  19 core 28 element/template/update
                  20 core 28 element/template/tvsort
                  22 core 32 element/tv/create
                  23 core 32 element/tv/update
                  28 core 36 resource/data
                  29 core 36 resource/empty_recycle_bin
                  30 core 36 resource/update
                  39 core 36 resource/tvs
                  43 core 36 resource/weblink/update
                  44 core 36 resource/weblink/create
                  45 core 36 resource/symlink/update
                  46 core 36 resource/symlink/create
                  47 core 36 resource/staticresource/update
                  48 core 36 resource/staticresource/create
                  51 core 36 resource/create
                  59 core 36 resource/site_schedule
                  26 core 46 security/usergroup/create
                  27 core 46 security/usergroup/update
                  32 core 46 security/role
                  35 core 46 security/login
                  52 core 46 security/user
                  53 core 46 security/permission
                  54 core 46 security/resourcegroup/index
                  55 core 46 security/forms
                  71 core 46 security/profile
                  72 core 46 security/message
                  33 core 53 security/user/create
                  34 core 53 security/user/update
                  36 core 57 system/event/details
                  57 core 59 system/import/html
                  49 core 212 workspaces/package/view

                  Is this correct? Have all of these actions been deprecated or is it just that their parent ids are incorrect?