-
Posts
687 -
Joined
-
Last visited
-
Days Won
4
Everything posted by matjazp
-
[SOLVED] Multi-instance Support in Multi-site Setup
matjazp replied to kongondo's topic in API & Templates
Yeah. As / is prepended to the $rootPath. Maybe you could rename site-mediamanager to sitemediamanager and also modify .htacces to reflect that change? But this is a hacky approach. Ryan must fix that, shouldn't be a problem (and also the realpath() where path contains ..) -
[SOLVED] Multi-instance Support in Multi-site Setup
matjazp replied to kongondo's topic in API & Templates
I don't use multi-instance support but looking at the code it's a bug for me. The culprit is here: $parts = explode('/', $rootPath); Since windows path doesn't start with a slash, $parts is different on nix and windows. Temporary detour (until Ryan fix it) could be using / as the first character in the path: $path = "/F:/vhosts/sandpit.dev/site-mediamanager"; // OR // $path = "\\F:\\vhosts\\sandpit.dev\\site-mediamanager" I'm not sure what impact would that have later on... -
Didn't try the module, but what happens with the data when the module is uninstalled?
-
I'm at work right now so can't help you much, but please try CodeMirror editor (in module settings) instead of monaco editor.
-
Not directly related, just in case if you rename the fieldset: https://github.com/ryancramerdesign/ProcessWire/issues/1854
- 7 replies
-
- 1
-
- duplicate fields
- fieldsetclose
-
(and 2 more)
Tagged with:
-
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
@flydev: my fix not working for you? -
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
You are right. I forgot true as the second parameter -
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
Can you elaborate how you tested? Maybe I'm doing something wrong, staring at the monitor for the whole day ... -
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
It has do with slashes/backslashes. Wanze is using realpath() function which on windows returns path with backslashes, while WireFileTools->mkdir() assume forward slashes and thus fails to create folder. The solution is simple, something like this in FieldtypeSecureFile.module after line 83: if(DIRECTORY_SEPARATOR != '/') $storageLocation = str_replace(DIRECTORY_SEPARATOR, '/', $storageLocation); or if(DIRECTORY_SEPARATOR != '/') $path = str_replace(DIRECTORY_SEPARATOR, '/', $path); in WireFileTools.php in mkDir() method. I don't know who is "responsible" to deal with that: developer or ProcessWire, so I'm not sure if this is something Ryan should know. Also, mkDir() method does not create directory structure on windows, even if you specify true for the `$recursive` argument. -
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
Hm, I get "destinationPath is empty or does not exist" error, coming from InputfieldFile... I'm baffled how could it work on unix and mac? -
Uploading/saving a file into a file fieldtype on Windows
matjazp replied to flydev's topic in General Support
Hm, I don't think this is specific to Windows environment since php copy() doesn't create the folder structure. I think pagefile expect that folder is already there. While your mods fix the issue I'm surprised that this isn't spotted by someone before (note: I haven't tried FieldTypeSecureFile). -
See the explanation at https://processwire.com/blog/posts/hello-pw3/#new-github-repositories If Ryan would only be the manager, he would be bored, I think. He just loves to code We've had this sort of conversation multiple times. I believe we all would love to help but we just don't exactly know how.
-
I agree. Those small modules, included in the core modules, would not bring any overhead, on contrary, it would reduce the total number of hooking and autoload modules. I don't know, Ryan is the only one who could provide the answer. There is feature request for this https://github.com/processwire/processwire-requests/issues/136. In this post (Roadmap for 2016) https://processwire.com/blog/posts/happy-new-year-heres-a-roadmap-for-processwire-in-2016/ Ryan said: "One of the goals with 3.x is to make the core smaller rather than larger. Consistent with this, we'll be evaluating all the currently bundled core modules and determining which ones no longer belong in the core." Maybe this is the reason?
-
https://github.com/processwire/processwire-issues/issues/475
-
I agree. While I do like new features, I like even more fixing the old issues and making PW stable. Those minor things and issues that are open for days/months/years make me/us creating and maintaining workarounds, like extra css/js files, using "small" modules, putting hooks in ready.php and you never know when and how these mods will affect the next release. When some time ago new repositories for PW was made (issues/requests) I hoped this will make PW issues solving more consistent (with the help of PW members, I think lostkobrakai and isellsoap), but it looks like nothing much has changed. As Ryan said: "The focus often depends on what resources are available in any given week, and what the most immediate needs are for current projects and clients." I understand that but still... I would love that too. Let's stop requesting new features so Ryan could focus on making the stable release.
-
Maybe ProcessFileEdit module would be enough for you?
-
Yeah, monaco has large size, 32 MB, and it's slower on start than CodeMirror or Ace.
-
That would prevent you from using Upgrade module, but yes, this is how it should be done in secure environments and how I have set all my sites (I'm on windows but the principle is the same). I upgrade (if at all) manually, since I'm the administrator of the server. Filemanager has some more options that might come handy: you can hide specific directories (eg. wire), you can hide "system files", hide file path in file details, hide symbolic link target, you can disable upload, download, edit, copy, rename, move, create, search, permissions. Those options are not available in module config settings, since the module is intended for site admins (superusers) primarily and I assume he would want all features enabled...
-
Yes, CodeMirror and, later maybe monaco (PR's welcome).
-
Hmm. never saw this, will take a look. EDIT: I like the way codiad works, that's how filemanager should work. It has more modern approach, it's fast, uses ace, it's more developer-centric. I did, tried it somewhere else (ProcessFileEdit perhaps?), but failed. Yes. I modified my original post to reflect that, I just forget it yesterday. Everything is possible, but I'm not sure in what direction will this module move (if at all). filemanager by itself allows hiding files of certain types, but it's disabled. The best way would be to try the original filemanager and all the options available (or you can try in the module itself, check config.inc.php). On windows, you can't change permissions. Displayed permissions might be inaccurate. I modified filemanager so that at least file permissions should be correct. On file info, you will see the correct owner of the file/folder and acl list.
-
Yes. If you allow other users to use this module than it's not free anymore, see license file for filemanager. Unfortunately, I can't guarantee that. This is first alpha release of the module, just to see if there is any interest in this at all. I didn't write the components, I just made filemanager works in PW (and it was a LOT of work too).
-
A module for managing files and folders. Supports creating, opening (e.g. viewing, playing, editing), renaming, moving, copying, deleting and searching for files. You can also view and change (not supported on Windows) file and directory permissions. https://github.com/matjazpotocnik/ProcessFileManager The author of FileManager component is (c) 2006 - 2018 Gerd Tentler, http://www.gerd-tentler.de/tools/filemanager/. I modified it to work with ProcessWire as a module. Please see license files on usage in commercial projects!
- 34 replies
-
- 19
-
+1 for entities1. I got this message: "Session: No handler found for action “Reduce 50%” on file ..." What handler? I guess this is because I don't have Imagick installed?
-
I updated the links to the files in my dropbox...
-
https://github.com/ryancramerdesign/AdminThemeUikit/issues/1