We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36516
    • 179 Posts
    I've re-tested and confirm that if I edit the properties on the default set, I can indeed upload. Verified by FTP. Refreshing didn't cause the file to disappear after uploading for me, though.
      • 36516
      • 179 Posts
      @donshakespeare: Has the topic of Media Sources been discussed within the context of elFinder? Right now that's the only significant drawback to it, when compared to the default browser.

      Also, mostly unrelated: my initial play with elfinder revealed a rather impressive image editing UI which now eludes me. At some point some black and white icons appear in the "crop and resize" modal, but for some reason those buttons no longer appear for me. I'm not desperate because the modal presents resizing and cropping which is all I'm likely to need, but the full editing suite seemed like a rather welcome addition and I'd like to understand how to get at it again. It had brightness and contrast, among many other options.

      Oh, and one more thing: the addition of the elfinder button for image TVs is rather messy. I wonder wether I can have the TV use elfinder by default rather than having to present it as a button tacked on as an afterthought, and in addition to the default.

      And one more, related: when selecting an target for an image TV using elfinder, the TV thumbnail doesn't update until the resource is saved and 'reloaded'.
        • 42562
        • 1,145 Posts
        While I am still searching for my proper elFinder hat, here is a quick and proper fix, with no direct answer as to why the sudden misbehaviour.

        Problem: elFinder is not receiving the URL parameter, pset
        Solution: force-feed it.

        In MODX resource, elfinder.html
        Find:
        pset: getQueryVariable("pset")

        Replace with:
        pset:"[[!TinymceWrapperGetUrlParam? &name=`pset` &default=`Default`]]" ----note the QUOTES

        Find:
        url : '[[++assets_url]]components/tinymcewrapper/browserConnectors/elfinder.php'

        Replace with:
        url : '[[++assets_url]]components/tinymcewrapper/browserConnectors/elfinder.php?pset=[[!TinymceWrapperGetUrlParam? &name=`pset` &default=`Default`]]'


        This should also respect &unlocked=1 and any upload issues after myModxPermission is set to Default Setting (unlocked)


        ###### UPDATE ######
        This issue has been thoroughly figured out and fixed in new release
        https://forums.modx.com/thread/97694/support-comments-for-tinymcewrapper?page=19#dis-post-538232 [ed. note: donshakespeare last edited this post 10 years, 7 months ago.]
          TinymceWrapper: Complete back/frontend content solution.
          Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
          5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
          • 42562
          • 1,145 Posts
          RE: Dave Smith
          Has the topic of Media Sources been discussed within the context of elFinder? Right now that's the only significant drawback to it, when compared to the default browser.
          Media sources inspired my implementation of elFinder - the bigger my brains get (slow process at the moment), the better the implementation
          Media sources? usergroup with assigned Media locations!
          elFinder = usergroup + file Volumes!

          See how elFinder can do exactly what you want?

          my initial play with elfinder revealed a rather impressive image editing UI which now eludes me.
          I never seen dat! Are you thinking Responsive FileManager's Aviary integration?

          Oh, and one more thing: the addition of the elfinder button for image TVs is rather messy
          Oh, so my work is messy huh, huh, huh...? sad

          wonder whether I can have the TV use elfinder by default rather than having to present it as a button tacked on as an afterthought, and in addition to the default.
          This is in the Roadmap ... when I figure out how to kill that pesky default button without annoying anybody

          And one more, related: when selecting a target for an image TV using elfinder, the TV thumbnail doesn't update until the resource is saved and 'reloaded'.
          Not so for me. The preview updates as expected
            TinymceWrapper: Complete back/frontend content solution.
            Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
            5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
            • 50864
            • 8 Posts
            Hello, i have trouble with &initdatepicker on TinyMagicPublisher

            [[!TinyMagicPublisher?
            	&debug=`1`
            	
            ]]

            i see this message:
            В форме были допущены ошибки:Параметр &initdatepicker не установлен, а Вы запросили поле с датой: pub_dateПараметр &initdatepicker не установлен, а Вы запросили поле с датой: unpub_date
            i try &initdatepicker='1' &initdatepicker='0' and &initdatepicker='' - nothing changed
            documentation on rtfm could not find, on "officilal blog" information about elFinder, but where info TinyMCEWrapper? on backend conponent working. frontend - failed ang i d'ont understand how to fix bug and use component. TT_TT
              • 42562
              • 1,145 Posts
              RE: arimanr
              Thanks for the feedback.

              I'll make a video, and hopefully somebody will write a tutorial - I am lacking time.
              Are you testing the demo resource, or your own?
              In the demo resource, everything will work perfectly fine.
              It will break when you set &initdatepicker=`0`

              And this is the error:
              The &initdatepicker parameter is not set, but you asked for this date field: pub_date
              The &initdatepicker parameter is not set, but you asked for this date field: publishedon
              The &initdatepicker parameter is not set, but you asked for this date field: unpub_date

              In your &show=`...`,
              remove pub_date,publishedon and unpub_date
                TinymceWrapper: Complete back/frontend content solution.
                Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                • 42562
                • 1,145 Posts
                Make sure you are using backticks and not quotes
                ` ` ` ` not ' ' ' '

                &initdatepicker=`0` ..not &initdatepicker='0'
                  TinymceWrapper: Complete back/frontend content solution.
                  Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                  5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                  • 36516
                  • 179 Posts
                  Quote from: donshakespeare at Feb 05, 2016, 12:06 PM
                  See how elFinder can do exactly what you want?
                  It can indeed, but it'd be great if it didn't require its own separate configuration. Media Sources are intended to be system-wide, but for elfinder I need to set up properties in a rather obscure snippet. (Trying not to sound like I'm complaining!)

                  I never seen dat! Are you thinking Responsive FileManager's Aviary integration?
                  I've only never used elfinder. Haven't bothered trying the others yet, mainly because you seem to be recommending elfinder by enabling it by default. Perhaps you could reveal your preference, if not elfinder. I haven't seen the additional image editing buttons for a while now. Rather confused. I'll report if they reappear and I spot any patterns.

                  Oh, so my work is messy huh, huh, huh...? sad
                  Aside from the fact that I'm seeing the additional button, which will no doubt cause some confusion for my users, I've changed the string to "File Manager" (nobody else cares that it's special) and so now the button appears to be truncated to simply "File", which is a bit odd.
                    • 36516
                    • 179 Posts
                    I've started configuring the additional locations in the property settings for the connector snippet, and now I'm starting to see inconsistent behaviour when uploading files. I've added a new user group so I can hide from the resource tree those resources associated with TinymceWrapper, so other users don't have to see them. I'm not sure if that has anything to do with it though, because now I've messed with the locations the main admin account seems to have intermittent upload capabilities. Seems fine so far if I stick with the original FileSystem location, [[++base_path]].

                    Also, myModxPermission seems to randomly revert to "forMembers". I'm not sure if that's just a raw value that hasn't been successfully masked, or if there's something going wrong. I have to change the value and then back to "Default Setting" again to reset it, but it'll switch back again after a while, usually after I click "Save property set".
                      • 36516
                      • 179 Posts
                      After some considerable testing, I'm concluding two interesting things when configuring the locations in the elfinderConnector property set:

                      1) The location doesn't even appear in the browser unless [[++base_path]] or [[++assets_path]] is used. I expected to be able to put in something like "/assets/" manually, but that causes the location to be dropped entirely.

                      2) If I try to extend the location target string with a subfolder, the ability to upload is lost. In Firefox, logged in as an admin, the file will appear but then disappear upon refreshing.