Jump to content

gmclelland

Members
  • Content Count

    534
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by gmclelland

  1. Hi @Robin S, just wanted to let you know that I tried out the latest version, but it didn't seem to work with the file/image files with no extension. Here are some examples that didn't work for me: Ex. pdf file with no extension: https://www.charleston-sc.gov/DocumentCenter/View/18787/Certificate-of-Construction-Completion-RES-Checklist?bidId= Ex. image file with no extension: https://www.charleston-sc.gov/ImageRepository/Document?documentID=23023 After saving the page with those urls, it shows the following error message: AddImageUrls: The remote file https://www.charleston-sc.gov/DocumentCenter/View/18787/Certificate-of-Construction-Completion-RES-Checklist?bidId= has no file extension and its MIME type does not correspond with a valid file extension for field "page_files". The file field is configured to allow pdf files and the image field is configured to allow png, jpg, jpeg, gif. Do these urls work for you?
  2. Thanks for adding this to modules directory and combining both module's functionality. 🎉 Not sure if this is possible, but sometimes you have sites that have file urls or image urls with no extensions. Example: mywebsite.com/this-is-a-pdf-link or mywebsite.com/this-is-an-image Urls like that won't work currently with this module. I'm not sure if there is a way to add a check if the url doesn't have an extension, then check the mime type against the allowed extensions? Maybe somehow comparing the two by using $config->fileContentTypes and $ctype = mime_content_type($file->filename); ?
  3. gmclelland

    Aaron Copland

    Yes, please. Maybe this would help? https://github.com/dadish/pw-skyscrapers-profile
  4. Haven't used it yet, but I think I read that Mystique is also a good module for this kind of stuff. I have also used SettingsFactory and can say that it works great.
  5. I think this might help you https://processwire.com/api/ref/functions/#pwapi-methods-Functions-API
  6. Hi LAPS, I’m not sure I follow? The article you linked says that it already does this. You elaborate a little more?
  7. @gebeer - FYI... I modified Robin's AddImageUrls module and adapted it to work with file fields now. It's called the AddFileUrls module. @matjazp I'm not sure I fully understand what you want, but maybe you could try the new "AddFileUrls" module and then use some kind of hook to modify and pre-fill the default value of the url in the file field?
  8. Hey @Robin S, I thought this module was handy so I modified the AddImageUrls module and adapted it to work for file fields. I attached the new "AddFileUrls" module. Feel free to upload it to your github or publish these to the module directory. It seems to work well in my testing. Hope that helps AddFileUrls.zip
  9. Thanks @matjazp! It makes sense now. That's a Windows only thing. Macs don't have that.
  10. @horst - what do you mean by this? I don't see anywhere to input any text in a file or image field.
  11. The two “orange” pages have the same page title, but it probably gives them different page names. Look on the settings tab of each page.
  12. gmclelland

    Aaron Copland

    Great looking site Macrura! Can you show a screenshot of your PageTable setup? Are you still using the Micro Context thingy that you wrote about in the past, or have you found a better way?
  13. ..Love what you are doing with this module. Thanks for making it. The icon's line weight look too thin in my humble opinion. What about using an icon from the included font-awesome library. You can browse the icons included by editing a template and then go to "Advanced" tab. Then scroll down to the Icon inputfield and click "Show all icons." That might give you some ideas? For an upload icon, maybe fa-upload? For an edit icon, maybe fa-pencil?
  14. Maybe this? https://processwire.com/blog/posts/pw-3.0.145/ See the Inputfield Javascript API
  15. I think I had this problem in the past and I had to do the following in my template: {% if page.editable() %} <script type="text/javascript" src="{{ config.urls.templates }}scripts/jquery-1.8.3.min.js"></script> {% else %} <script type="text/javascript" src="{{ config.urls.templates }}scripts/jquery-3.2.1.min.js"></script> {% endif %} This is written in Twig, but basically it shows how to check if the page is editable then use this version of jquery, else use a different version of jquery. You might want to check your web browser's console to see if there are any errors on the page. Hope that helps
  16. I believe you can do this with http://modules.processwire.com/modules/page-image-manipulator/ Check the docs at
  17. Could you replacing the line with this: $this->myvar = $this->pages->get(2)->name; // problematic for some reason I have a note in my Processwire notes that say's --Extend WireData to access API variables using $this->page instead of calling wire() function every time. It also lets us get module settings directly using $this->someSetting.
  18. If a url segment for year exist, you might have to whitelist the year? https://processwire.com/api/ref/wire-input/whitelist/
  19. See the last paragraph on the latest blog post. https://processwire.com/blog/posts/pw-3.0.142/ Perhaps that is the issue?
  20. Try renaming the MarkupSEO module to .MarkupSEO so you can at least access the site again while you troubleshoot it. What version of processwire are you running?
  21. Looks like this has been corrected in iPadOS 13.1
  22. What version of Processwire are you using? What version of PHP are you using? Older versions of Processwire might not be compatible with the newer versions of PHP 7.X.
  23. I doubt Tracy is the problem, but to disable Tracy you can rename it to .TracyDebugger. Just FTP into the server and rename the folder in site>modules>.TracyDebugger Hope that helps
×
×
  • Create New...