Jump to content

Martijn Geerts

PW-Moderators
  • Posts

    2,769
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. Well Done ! Thank you very much !
  2. Use inputfield files, not images.
  3. Didn't test this one: hope it works. $home = $pages->get("/"); // all menu item exept home $page_array = $home->children(); // count all items in $p_array $count = count($page_array); // all items divided by 2 + rounding down to integer $position = floor($count/2); $insert_after_page = $page_array->eq($position); $page_array->insertAfter($home, $insert_after_page); then: foreach($page_array as $p) { do your funky stuff }
  4. <joe> Why not? </joe> - Say you have a company logo, and it's linked to the company site. - The original is the same size as the thumb. ( You can prevent that with Soma's min size Module )
  5. Adrian, I must admit, I didn't install/test your module yet. But I love it as it works the way you told us. Within the next 2 or 3 weeks or so I gonna start a bigger project. A thing it need, is to find articles containing a video. Your module will be installed for that, as I can query for images, thus containing a video. I thing I wish ( Maybe I can build, or it's already in there ) is that it deletes the images if the url to the video is gone. I hope I will find time to work on it this week. Are you open for additions to this module ?
  6. Makes sense what Ryan said & Diogo finished the how to do. Thank You very much !
  7. So far I know There's no similar thing in PW.
  8. <joe>However it still does not solve the problem that I want the user to have only two choices for aligning the image when inserting it. (The Image-Interceptor can be set to either align the image left or right or "Alignment: inherit" - leaving the choice to the user when inserting the image, but there I want to eliminate "No Alignment" or "Align Center" as they mess up the look of the page.</joe> You can chose No-Alignment, then align_no_align class is added to the image. Beware that Images are inline elements ! You have to do the CSS by your self. if "Link to Larger Version?" is checked, there will be a link to a larger version. Don't know what is confusing about that. And you can't always "lightbox" all images by default. ps, for your "hacking", consider styling ( read display: none ) to alignment options
  9. @Raymond: Edit your post (the one above mine), click full editor (or something) then a under the textarea there's an upload function.
  10. I just wrote a very tiny grid system I call it FontZero. It's based on inline block and font-size behaviour. Not net tested in IE, but I think IE 7 and below will fail. ( due inline-block ) IE8 will do I guess. Others should play nice & Safari has problems with floating numbers for at least 2 years. Other frameworks have issues with it as well. Please report any issues for IE8+ & any other browser. Example: FZ5 is 1/5 of 100%. FZ9 is 1/9 of 100%. There's the full range from 1 till 12 You can calculate columns: Example for class .FZ11 .FZ11-2 + .FZ11-4 + FZ11-5 = full row 2 + 4 + 5 = 11, for .FZ11 we need 11 to make 100% Example: .FZ2 FZ2-1 + FZ2-1 = full row 1 + 1 = 2, so 100% ( 1/2 * 100 ) + ( 1/2 * 100 ) = 50 + 50 = 100% Advantage over most other grids The code below makes 3 column and 3 rows, no need for row markup, <ul class='FontZero'> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> <li class='FZ3'><img src='...'></li> </ul>
  11. There's only CSS, no JS behaviour. And just clean markup. I have been lookin at pure, wanted to start with it. But although very small, it's still to bloated for me for the next project.
  12. Has figured out what ?
  13. Just installed and I love it. But i'm afraid editors won't set description if the images are set to the nice grid view. Maybe it needs some tiny exclamation mark rendered on top if no description is given. ( wild thought ) The HelperFieldLinks is !
  14. Welcome to PW ralberts. This is possible by default with: Language alternate fields
  15. I would say for a repeater field, stay under 10 fields inside a row. ( I think i've never had more then 5 fields in a row ) By default, 3 rows are created although unpublished. Next to that I think you should rethink your structure. And work with normal pages instead. Keep in mind that you can reuse fields !
  16. I love it. ( also love font-awesome )
  17. @KaMeKuN, please talk in forum and not in PM. If things are confusing for you, it might be confusing for others to.
  18. I have no plans to develop it further then this. For me it's just a time saver to build tables. If more people really like this module I can continue on this one. And add it to the modules directory to. Can imagine I build in support for normal PageArray, manipute output etc.
  19. - go to repeaterTable - download the gist - install the module $table = $modules->get("RepeaterTable"); // initialize $table->thead = false; // (bool) true/false, default = true, will render <th> $table->indent = 3; // (mixed) false/int, where int is the level of indentation, default: false $table = $table->render($page->repeater); // repeaterfield called repeater
  20. Me to! But I have to find a way to make it easy for editors to provide data for the charts... let it marinate
  21. Is it possible to hook before ImageSizer::resize And then call setSharpening('none') ? ImageSizer.php is located at /wire/core/
  22. Something like this ? $saved = $config->imageSizerOptions; $config->imageSizerOptions = array( 'sharpening' => 'none', // sharpening: none | soft | medium | strong ); $thumb = $page->image->width('100'); $config->imageSizerOptions = $saved;
  23. tnx apeisa, interresting ! I gonna marinate this a little. As my needs are indeed a little different. Think I gonna use abuse WebPageServices module cause I want to use it for other items to. Thank you guys for resetting my brain.
  24. Is there a possibility to deliver a page From ProCache, but update a 'view count field' inside the requested Page.
  25. What's next ? A module for creating charts ? You're on a rampage, great!
×
×
  • Create New...