Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Hello. http://processwire.com/talk/topic/2263-resized-images-%E2%80%93-purge-originals/
  2. Hey Wanze, I somehow forgot about the "let's discuss..." :/ It would have been no issue if you wanted to take my WIP, it's up to you, no matter if not. PM me if you want to discuss about it. Or sometime on IRC? However, I tried your module already a couple time now and have some little feedback. - It would be nice to have the edit link more visible. In my theme (heh) it's hard to see. Maybe also just make the title edit link. - After editing a set of pages it wouldn't it be nice to have the modified pages still there visible? Like saving the selector. Keep up the good work!
  3. Finally tried it out and very cool module! Thanks a lot tepp for the work. I had some time to get how to get it to work as I was looking for the configuration. I didn't realize there's two modules... only after reading the get started again slowly it clicked. I always looked in the process module. Sometime those module that have more than one .module can get confusing, almost annoying. It would be cool in general to have modules grouped together. It's all there but sometimes when installing a new module hard to find if you don't know/remember what to look for. I noticed when looking for help, that there's version 091 on modules.processwire.com but it downloaded the one from github anyway with modules manager, but wanted to let you know you'd have to update that version on modules.processwire.com to get recognized as new version in modules manager.
  4. Have tried no value? field=
  5. It doesnt matter when and if you add or remove field. It should assuming you mean a selector be 'field=' have you tried that?
  6. This is simple and you can do it like this: Have the subdomain dns point to the same root as the domain. In the Template you could use: if($_SERVER['SERVER_NAME'] == 'm.exampledomain.com'){ include('yourmobile_tpl.php'); } else { include('yourdesktop_tpl.php'); } or whatever you can make out of it, you can also just define a constat or variable to use in code.
  7. Thanks Ryan. The name was in my head since a long time. All these hooking... It's easy, it takes me 5 minutes to update. Download new repo, file search in sublime, copy result file over, hit refresh, upload new index.html.
  8. Ups yeah sorry it's $file->filename
  9. Sending a file using url doesn't work, it has to the full server path.
  10. Maybe this custom upload script example does help?
  11. Thank you guys. Yes I love doing the simple things and I loved to cheat in school. Anything more than list causes me headaches.
  12. Captain Hook ProcessWire Hooks Cheatsheet http://somatonic.github.com/Captain-Hook/ or on processwire.com http://processwire.com/api/hooks/ I created a simple list with a live search for all hookable methods available in the core. All methods prefixed with a "___" (3 underscores) are hookable. Methods can be made hookable by simply adding those ___ to it. ------------------------- I usually don't really need this, but thought it would be good to have an official list for reference. I used Sublime Text2 for searching and dumb a file with a search for " ___" in wire core. From this list I created a html file with a php script and added some fuzzy live search, similar to the API cheatsheet. If you use Sublime Text 2 like me you can simple use Goto Anything command super+p to show a fuzzy search for files. Enter a class name you want to search for. For example "fields" or "process page edit" you will recieve a list of files found in PW. Highlight the file and typ a @ to see the symbol list quickly or select the file and super+r the get the symbol list.
  13. Any method in the core with 3 underscores prefixed can be hooked. Looking at ImageSizer.php there's none in there.
  14. All methods in core prefixed with 3 underscores can be hooked by className::method.
  15. $page->field->clearAll(); Or was it removeAll();
  16. Ah then I didnt really get what the desired result was. Nevermind. I think nik is spot on here. You can easily get top of all repeaters and if you add limit to the selector it will be good. Yeah the doublicates youd have to work out if there could be any at all.
  17. Look for my ChromePhp debug module. If you want from start to end of full pw youd have to insert your code in top and bottom index.php gateway. No way to hook that obviously.
  18. Repeater field is the only option currently. Maybe in future we could try building something out of it to support many repeater templates you could define and choose from when adding new item. Originally this was my idea to have with how repeater work but it turned out different. It's very complicated to build but it may worth trying. We already discussed this and people where asking for it. For now page references work pretty well and is the way to go as it offers the most flexibility and enables to share content and reuse. It's consistent abd fast. Rather also see how far we could push page fields to add features like direkt editing etc.
  19. Hey Jennifer, nice site and design! Congrats and great to hear your opinion on PW. Some little things I noticed: Just noticed something when on mobile landscape mode I see a responsive layout broken a little. It looks like this: Clicking Calender of Event on home does to a 404. All the links from the top carousel go to a 404 to http://fyp.washington.edu/fyp I took a closer look at your site and seeing the home page has a impressible load, 85 files and 2.7mb just for what is there. And it's strange as it seems something is loading scripts multiple times as I don't see (just looked quickly) where it's coming from or why at all, so modernizer is loaded twice etc. There lots of css and js script and plugins and fonts, I wonder how much you could improve that without going mad. One of the reason I always still build my custom css and js and only use plugins when really needed, also a reason I don't like those full blown frameworks. Looking at the mobile perspective you load the full images you won't ever need that big anyway so a adaptive image solution would also help reducing page load. Just my 2 cents.
  20. I have created a sample module that does mapping two page fields against each others As per http://processwire.com/talk/topic/2384-change-the-value-of-one-field-by-editing-another-one-possible/ https://gist.github.com/somatonic/4335296 I also have a rough module that adds links to the pages linked after saving, but it's not something I can share. But looks like it's not what you actually ask for, but anyway all is possible.
  21. Happy discovering. It's like christmas just more useful.
  22. I created another version to show how to create this navigation with post which have a date with daytime. So it covers a range of 24 hours and not only a date without time. It looks for the next post found in future and past, so it will still work if there's a day in between where no posts are published. I created a new gist snippet for anyone interested as reference: https://gist.github.com/somatonic/5068777 It will give you something like this
  23. Now tested and put the code on gist github: https://gist.github.com/somatonic/5067314 I have some minor correction and added comments, some improvement to show how to handle 404 and dates.
  24. You'll have to adapt it to your situation and test it out, that's all I can do.
×
×
  • Create New...