Jump to content

interrobang

Members
  • Posts

    255
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by interrobang

  1. Ryan, just for the record, Apple seems to support the file api now in Safari 6, I uploaded a file some minutes ago with drag-drop and it worked. Caniuse.com also lists the File API as supported on Safari 6: http://caniuse.com/#search=File%20API
  2. Because I like setting the widths in the backend. But you are right I just can unset the widths and do this in my css. A wrapper div would be useful nevertheless. As the PW backend itself only supports IE>=8 I think we should change the box-sizing to borderbox and output the same width as we set in the column width setting. Shouldn't hurt anybody. Having 100 classes feels cumbersome, but why not? It would make it much easier to customize the styling of the forms. Of course it would be a hack, but I could for example use a grid-system like zurb foundation with only 12 columns and map the class "percent-50" to zurbfoundations "six columns". Things like that are so easy when using sass/compass.
  3. At first I also wanted to complain about the verbose Form Builder markup. But the more I play with it, the more I like it. But I don't like the jquery ui themes, but the verbose markup makes it easy to use your own css most of the time. One thing I don't like is how column width is handled. I would prefer having classes like width-50 instead of inline styles like style="width: 50%". And for some reason only the first column width in a row gets the value you set, The others are width-1%. For example having 3 columns (50%, 25%, 25%) is outputted as (50%, 24%, 24%) ?! For using my own styles it would be nice if we could add a div wrapper around inputfields, like we already can with fieldsets. So basically I want even more verbosity
  4. rel=0 works perfectly for me now, thanks.
  5. Looks like this can't be done with oembed itself. I found a wordpress Plugin which simply adds rel=0 to the returned URL. Not nice, but should work for us too. http://wordpress.org/extend/plugins/hide-youtube-related-videos/
  6. I have a video embedded a youtube with this module. At the end of the video youtube displays related videos. Can this be changed? The customer just wants to stop the video, without displaying any related videos. Normally you can add "rel=0" to the embed url, but I don't know how to change this in the module.
  7. Oops, sorry. And I thought someone had a really deep understanding of processwire. Maybe I should remove the links, so they doesn't get backlinks from here?
  8. a nice review: [link removed]
  9. This value can be edited in the backend. revert your changes in the module and goto setup/languages and edit your german pack. Click the "translate new file" link at the bottom of the page and use this path: /wire/modules/LanguageSupport/LanguageSupport.module Now you can edit the locale. Hope this helps. I think the LanguageSupport files should be added to the german language pack too..
  10. The official docs say this: I didn't test, but something like this should work for you: $catPages = $pages->find('parent=/system/category, title=print|video'); $categories_selector = ''; foreach ($catPages as $catPage) $categories_selector .= ", categories={$catPage}"; $result = $pages->find("parent=/articles/, body*=$query $categories_selector");
  11. Arjen, I dont't know if already know about this, but maybe you can apply for the mailchimp inegration-fund and get some money out of your efforts: http://mailchimp.com/about/integration-fund/
  12. Another review in german: http://lukasepple.de/blog/2012/08/grundlagen-processwire/
  13. I think it would be nice if we could do something like that: $myImagesizer = new ImageSizer(); $myImagesizer->setUpscaling(false); $myImagesizer->setQuality(20); $myImagesizer->size(600, 400); $img->apply($myImagesizer); This way it would even be possible to extend Imagesizer and add some new methods to it without modifying Pageimage. I am thinking at filters like blur, desaturize,...
  14. Have a look here: http://processwire.c...ng-image-field/ You know that you can sort the images by drag and drop? I would go with the 2 images field approach if possible.
  15. In order to get use phpstorms codesense you must tell phpstorm what variables are there. Just add a PHPDoc comment like this to your php template files and it should work. Even without using my fork you get some codesense support, but a lot of properties are missing. /** * @var Pages $pages * @var Page $page * @var Templates $templates * @var Fields $fields * @var Users $users * @var User $user * @var Roles $roles * @var Permissions $permissions * @var WireInput $input * @var Sanitizer $sanitizer * @var Session $session * @var Config $config */
  16. I just googled and found a chinese blog mentioning pw: http://www.cnblogs.com/web8cn/archive/2012/07/30/2614795.html
  17. There are a lot of useful polyfills like this jquery plugin out there. Have a look here: https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills I like especially the web forms polyfills. Nearly every html5 form feature can be used now in every browser! Thanks for mentioning php-diff - could be useful for an upcoming project.
  18. Ryan, in my github repo (https://github.com/b31/ProcessWire) all my phpdoc changes are done. Do you want a pull request?
  19. Most of the time my customers want self hosted videos. Usually I give them a simple File-Field and embed the video with a <video> tag and include a javascript (mediaelementjs.com) with flash fallback for browsers without html5-video support. Medialement.js even has a youtube plugin so you can Embed youtube videos like this: <video width="640" height="360" id="player1" preload="none"> <source type="video/youtube" src="https://www.youtube.com/watch?v=nOEw9iiopwI" /> </video> I have not used this module yet, but maybe Medialement.js is a interesting option to include?
  20. And there is even a vim plugin for phpstorm: http://plugins.intellij.net/plugin/?id=164
  21. Soma, you have swapped the labels of "Goto Setup" and "Goto Pages" in AdminHotkeys.module Your module is now part of my default processwire setup. Really useful..
  22. I updated your code: <?php $features = $pages->find("featured=1, limit=6, sort=-date"); foreach($features as $feature) { $thumb = $feature->images->first()->size(100,100); echo "<li>" . "<a href='{$feature->url}'><div id='explore_thumb'><img src='{$thumb->url}'></div></a>" . "<h3><a href='{$feature->url}'>{$feature->title}</a></h3>" . "<em>{$feature->date}</em>" . "<p>{$feature->intro}</p>" . "</li>"; } ?>
  23. Wow, this is a nice little helper. Great work! One suggestion. Is it possible to go to the templates / field main page if I just press enter in the empty modal? This way we dont't need a additonal shortcut for these pages.
  24. You can work in fullscreen in PhpStorm, too. But I think a IDE is for advanced programmers like yourself of less use. I only know some PHP basics and I think a IDE can help me a lot to write better code in less time. I want to add all properties and methods which are currently invisible because they are called via magic methods but are listed in the Cheatsheet. Basically I want the Cheatsheet available in my IDE I think I dont understand what you you are saying about most properties are not API accessible. My IDE shows basically the same information as the APIGen documentation. I think there is no need to add better comments to the public methods. Yours work quite well in my IDE. If you are really concerned that we can see public functions that are not part of the public API you can maybe add a @access private or a @internal tag? The offical purpose of the @propery and @method tags is to add documentation for "magic" properties and methods. So I don't think we get a incorrect view of the API. See here: http://manual.phpdoc...operty.pkg.html http://manual.phpdoc...method.pkg.html I haven't completed the phpdoc-comments for all classes yet, but the most important classes are ready: https://github.com/b...f073ad2ea97d03a
  25. It seems there isnt't very much interest in this. Anyhow, Ryan, would you merge phpdocs like this example into you code if I send you a pull request on github?
×
×
  • Create New...