Jump to content

adrian

PW-Moderators
  • Posts

    11,191
  • Joined

  • Last visited

  • Days Won

    373

Everything posted by adrian

  1. Does this help: https://processwire.com/talk/topic/8553-how-to-increment-file-download-counter/
  2. http://modules.processwire.com/modules/process-custom-upload-names/ That module will ensure nice filenames - you can configure however you want. That's great for future images, but for the current ones - there is an option in the module to "Rename on save" - generally I don't recommend this one, but in this case it would allow you to create an API script to loop through all pages and resave them. I would test first on a sandbox PW install to make sure everything works as expected.
  3. Looks like it can't get the SVG's attributes which suggests that the SVG in questions doesn't have a width/height set. That is OK though - that is a valid situation. However line 182 includes the shutup operator to silence this error: $a = @simplexml_load_string($xml)->attributes(); Is your config overriding the silencer?
  4. Or perhaps another approach would be to use a standard SQL query to get an array of page IDs that match the desired controlnumber and then get the pages like this: $pageIDs = array of pages_id results from SQL query of the field_controlnumber table $matchingPages = $pages->getById($pageIDs);
  5. Ok, the latest version now respects the maxFiles settings for the image field. Please let me know if you have any problems with this feature and if it works as expected for you.
  6. I have just started playing with the page tree panel and I think I'd rather see it appear beside the current view's content, rather than on top of it. That way I could leave it open and return to what I was doing - it can be a handy reference for other tasks. It would work the same way as the side menu in the Reno theme works. I'd actually like to see it remember it's open/collapsed status also. I know you are worried about the overhead of rendering a page tree on every request, but with the new page tree from 3.0.8, isn't that less of an issue now? Now it's just rendering, rather than querying? Or do I have that wrong - I actually haven't checked the source to see what's actually going on there. I am also not sure why it has to be so wide - currently to close it you have to move your pointer to the middle of the screen to either click the panel label or the main page to make it disappear. Any reason it can't be the width of the widest page title? Also, I have what I think is a bug. If you are on the Setup page: http://pw.dev/processwire/setup/ and you click the sitemap icon in the breadcrumbs, it loads the Page Tree fully, not in a panel.
  7. You're right - I rushed that last update - there are two ways to get the title and the second one still works. I have reinstated that and it should be working again now. I am still going to wait till tomorrow to deal with the max files setting - I definitely need to think this through a little better first.
  8. Hi @Robin S, Thanks for the report - I have a fix for the "Unable to Copy". However it looks like Youtube has also finally removed direct access to the video's RSS feed for getting the title and description. I have committed a quick update that takes care of the first problem and prevents errors for the second, so it should work for you now. I will try to find some time tomorrow to implement the changes needed to fix access to the feed and also look at the max images setting issue.
  9. It gives your site editors the ability to add different content types "blocks" in whatever order they wish. For example, a block of text, then an image, or a video, or a two column block of text, perhaps a map - whatever you set up for them. The great thing about this, compared to letting them embed images etc within a CKEditor textarea is that you can control the output of these, rather then letting them potentially mess things up
  10. Getting back to topic Third part in Maurizio Bonani's excellent series: http://blog.mauriziobonani.com/processwire-basic-website-workflow-part-3/
  11. Looks good to me - thanks again!
  12. Hi Martijn, I agree - it's weird what the Nette/Tracy folks did by injecting the debugger bar code after the closing <html> tag. I don't really know if they have a valid reason or not. I should post an issue with them though and see what they say.
  13. For most modules, I would agree with you, but this one potentially has 8 custom permissions. I think most users will probably only want the "tab-settings-view" or "tab-settings-hide" permission. I'd rather not pollute the permissions list with 7 additional unnecessary permissions if you are planning on only using one. Do you see my point?
  14. It would be a good start to temporarily revert to the default core version of ProcessPageAdd to see if that fixes the repetition. This module does hook into Page:addable() and Page::editable() to prevent editing and adding to pages outside the restricted branch. We're getting off topic, but perhaps you should use those hooks rather than editing the core ProcessPageAdd - at least I think you should be able to achieve what you want with those hooks - btw, these are not listed in Captain Hook which is why you may not know about them.
  15. Sorry, I have to take that back. A hard reload still results in the FOUC. This however seems to work: $(document).ready(function(){perfmon.elements.main.show()});
  16. Works great now - thanks!
  17. I am on Chrome/OSX What I am seeing is content from the area with the blue heading. It isn't styled though - just a bunch of text at the bottom left of the page. It only happens when viewing the PW admin - not seeing it on the front-end at all.
  18. No problem. One tiny thing I am noticing with your module. There is a quick FOUC when the page loads. Not a huge deal, but it would be nice if the details frame was hidden until the JS kicks in to collapse it.
  19. Thanks for the update. Yes, the modules directory will update from Github once a day, but you can also manually update it by simply editing your module in the directory and saving.
  20. bernhard - I am rethinking this - I think that szabesz and horst make some compelling arguments - in particular I like the idea that Tracy can make your life easier when you're not at your normal dev machine, so adding this could be useful. Do you have a preferred solution? How did you set up what you have in that screencast? I was looking at: https://github.com/micheh/w3c-validator but was wondering if you were just passing a URL to an iframe of the w3c validator? I actually like the idea of being able to color the panel icon in Tracy depending on the report status, so I think something like that Github library might help in that. PS Mismatched html tags is a great example of a bug that should be dealt with, so from that perspective I think it might fit nicely with Tracy.
  21. Still waiting to hear from you @SteveB! But in the meantime I thought a little more about name vs path matching and I have made some additions in this area. You can now either return a name or a path in the custom PHP code option. Path is the recommended option. This change doesn't affect the other two matching modes, but it should make this mode more efficient.
  22. Hi @SteveB, I just tested using that approach (with "data" instead of "/data/") and it looks to be working just fine here. You have me thinking though that maybe the custom PHP code approach should be path, not name. I'll need to think about this more. In the meantime, is there any chance I can get access to this PW install to see if I can figure out why you are getting that repetition? I am sure it won't be hard to fix once I know why.
  23. Hey @bernhard - thanks for the suggestion, but I think I agree with @tpr here - this might be better handled buy a browser extension. It's funny really I used to be obsessed with having perfectly validating pages, but then it seemed that for a while there (as HTML5 was becoming more usable) that validators weren't keeping up so I stopped using one. Now the only time I use one is for validation of XML. That said, if others think that it would be a useful addition to Tracy, I'd be willing - after-all, if you don't want to use it, just disable the panel and nothing will be loaded. Anyone else have any thoughts on this?
  24. I decided to look into this. It's definitely related to PW 3 vs 2. For 3.x you need this instead: $hooks = array_merge(wire('pages')->getHooks('*'), wire('hooks')->getAllLocalHooks()); In Tracy I just used a conditional based on whether: wire('config')->version is >= 3
  25. Mike - I am not a FormBuilder user so I am not sure if this is a FB issue or if there is something that I can change in the Phone fieldtype to make it work with FB. Perhaps if you post about this in the FB thread, Ryan might have some advice.
×
×
  • Create New...