Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/23/2013 in all areas

  1. Thanks for the likes It means a lot to me you guys seem to really like me. I don't know what this number means but it's a little scary... heh
    12 points
  2. Custom Page List lets you easily customize the page list (tree) in the admin section. I wanted something more (easily) configurable than the existing solutions, so I tried to add some new functionality with an easy to use interface. This is my first module for ProcessWire, so don't hesitate to let me know how to make it better Based on the work of Philipp Urlich (somatonic): PageListImageLabel https://github.com/somatonic/PageListImageLabel Adam Spruijt (adamspruijt): PageListBetterLabels https://github.com/adamspruijt/PageListBetterLabels Features Customize styles and separators used in the page list Display custom labels for each field Display image thumbnails Display formatted dates Display info from related models (e.g. title field of related pages) Display on/off checkbox as "Yes/No" (ready for translation) Define output filter(s) for each field Configuration See the README that comes with the download. Download Source code is available at https://github.com/hgassen/custom-page-list.
    4 points
  3. Dear PW-ers. I would like to inform you that I’ve been in need of Tree View commenting system for a project being developed by me at the moment, thus, I’ve decided to make some additions to the commenting system developed by Ryan. Hereunder, I’d like to share the code with you for your kind information. You can also practice it in case of need. Some screenshots: Download link: FieldtypeComments.zip List of changed files: small change in main.css: Archive updated.
    4 points
  4. Hello everyone, Here's my Hebrew translation for ProcessWire 2.2.9: https://github.com/jacknails/processwire-hebrew ProcessWire-Language-Hebrew.zip
    4 points
  5. As briefly discussed earlier with Ryan (http://processwire.com/talk/topic/1560-searching-multiple-fieldtypes/page-2#entry23307), I tried to build some sort of test suite for ProcessWire. The tests aim for selector consistency (in-memory and db) and of course making them free of bugs - once and for all. The beginning of the test suite with instructions can be found from https://github.com/niklaka/ProcessWireTests . I wouldn't be surprised if I had to go and restructure the whole thing sooner than later (more than once even), but that'll do for now. Next I'll focus on writing a basic set of tests to cover at least the most common selectors (as there's currently only a few of the most simple ones there). This testing stuff if somewhat new to me and I've been reading lately a little something on the subject. Hope I got at least something right . Having said that, any help (or constructive criticism) from you my dear friends is highly appreciated. Especially if you'd happen to have any/some experience on testing - but I'll take kind words from anyone . I decided to try where I'm able to get with PHPUnit and so far it looks like it would be very much possible to build something useful with it (no, I'm not exactly surprised as it sure is a proven tool for such a thing). I did take Ryan's idea of using Skyscrapers profile as a base for testing (you're not making changes to it are you Ryan ), but there may be need for some other approach as well, even another Skyscrapers based one. Well, I'll go and write a a couple of more tests now. (PS: If some admin feels this post fits some other area better, please do move it - I wasn't sure where to put it myself.)
    3 points
  6. Well, I guess it's just because you really deserve being thanked (and liked) by many people on this forum! I wish I could be more helpful myself but I have to admit I have a long way to go before being close to many of you concerning developping skills. I'm saying this not for my own merit, of course, but just so I could allow people like you focusing on higher skilled matters. Anyway, being around this forum is great and it's just because there are many persons like you, Soma, willing to help the others, quick in answering their problems, and patient enough to repeat some 'beginner' talk to guys like me. So THANKS to you, but also THANKS to many others for your kind help and the way you're involved here. Congratulations!
    3 points
  7. Thanks guys for all the support! I really appreciate it - got things figured out now!
    2 points
  8. @Nico There are a few ways to do this. One would be to setup a simple LAMP stack with an unused PW install in a virtual machine using KVM/QEMU or VirtualBox. etc Take a snapshot of the virtual machine just after you do a fresh PW install. You can then just restore the snapshot everytime you want to start over. If you want to keep the state of your work you can just clone the installation to a new VM and then restore your initial one. Personally I just use a bash script for "one-click" installations of PW (or other software I'm testing). I have it do this... Ask for the the domain name to use Ask what software to install Add an entry to my /etc/hosts file Create the root directory for the new site Create a new virtual host pointing to the root dir Restart Apache Create an application specific MySQL user + DB + password combo Install the software I've asked it to (for some software I use a lot) automate the initial setup screens using wget to post the correct params into the app. If anyone's interested I could gist various PW specific parts of my script. (Go easy though, I'm just learning bash scripting.) Edited to add: Vagrant is definitely worth taking a look at for this kind of thing too.
    2 points
  9. Maybe something like this then, extending from Soma's example: $titles = array('first', 'second', 'third');foreach($titles as $title) { $np = new Page(); $np->parent = '/path/to/your/parent/page/'; $np->template = 'basic-page'; $np->title = $title; $np->save();} So there's no need for WireArray or PageArray here, nor import() - which has nothing to do with creating new pages but importing Page objects into a PageArray. And if you'd want to import some more data in there at once, take at look at this as well: http://modules.processwire.com/modules/import-pages-csv/
    2 points
  10. Greetings, If you keep this up, you will hit your 2000 milestone at an even faster rate. All jokes aside, thank you very much for all your help. I'm sure I am not the only one who really appreciates your deep knowledge and constant patience. Thanks again, Matthew
    1 point
  11. 1 point
  12. Soma is always there willing to help. Really deserved likes!
    1 point
  13. Not sure, but I think it was 2009 when nik changed to mosaic from lynx...
    1 point
  14. Thanks for this - I know a lot of people have need of threaded comments so this is very welcome
    1 point
  15. As I post this, your likes are at 1001. Remember, yours are in binary
    1 point
  16. *puts unfinished novel back on shelf*
    1 point
  17. You've already exceeded the 50mb data quota on this forum with only plain text. ( I won't tell pete )
    1 point
  18. The magic selector include=hidden does the trick.
    1 point
  19. You can't do this from the admin, as user management there is intended as an administrative task. But you can use the API to check and enforce role settings specific to your needs. For example, here's how you might make a "create vendor" form: if(!$user->hasRole('editor')) throw new WireException("You don't have access to add users"); if($input->post->submit_add_user) { $name = $sanitizer->pageName($input->post->user); $pass = $input->post->password; if(empty($name) || empty($pass)) { echo "<h3>Name and password are required</h3>"; } else if($users->get("$name")->id) { echo "<h3>That username is already taken</h3>"; } else { $u = $users->add($name); if(!$u->id) throw new WireException("error adding user"); $u->pass = $pass; $u->addRole('vendor'); $u->save(); echo "<h3>Added vendor: $u->name</h3>"; } } echo " <form action="./" method="post"> <h2>Create new user with vendor role</h2> <input type='text' name='user' /> <input type='password' name='pass' /> <input type='submit' name='submit_add_user' /> </form> ";
    1 point
  20. When you are manipulating a page for the purpose of saving your changes via the API, then you want to make sure that the output formatting state is OFF. When output formatting is OFF then your images field will always behave as an array. The single-image reference (with setting 1) is primarily for front-end syntactic convenience so that you can do echo $page->image->url rather than $page->image->first()->url. But behind the scenes, it's still always an array. This reveals itself when you try to set a value to it and output formatting is on, for instance. But in general, it's not good to set any values you intend to save when output formatting is on.
    1 point
  21. @thatigibbyguy I clearly remember being like you (no PHP) and I am still quite a PHP lite-weight. Luckily by the time I came to PW I had some PHP behind me because it meant I mostly had to only focus on PW. But all I can say is that I am SO glad I spent some time getting the basics of PHP because it's allowed me to use PW which I've found to be the best CMS I've ever used, no contest. And using it has lead to learn more PHP due to the excellent and helpful examples in this forum. In case it helps, these two are resources that you'll either already know of or if not may be good places to get more PHP mojo: http://phpmaster.com/ and of course http://php.net/. Good luck!
    1 point
  22. Welcome to the forums Marcus Your $number_of_images variable will always hold the same value (in this case 5), so the result of the module 3 test will always be false. What you have to do is forget about the images count (you don't really need it for this), and use a simple counter for the loop. With this change, your code would look like this: <?php //$number_of_images = count($pages->get(1012)->images); <- no need for this $i = 1; // <- the counter starts with 1 foreach($pages->get(1012)->images as $image) { $thumbnail = $image->size(118,112); echo "<a href='{$image->url}'><img class='photo' src='{$thumbnail->url}' alt='{$image->description}' /></a>"; if ($i % 3 == 0) { echo "<p>Insert</p>";} // <- the module test is made against the counter i++; // <- update the counter on each iteraction } ?> PS: use the code tag on the editor when writing code. It will look much nicer
    1 point
  23. This might help: http://processwire.com/talk/topic/955-translatable-file-list/#entry8100 And welcome to the forums!
    1 point
  24. Hi all, Happy to be the first post here in the Jobs forum. I'm the Director of Technology at PJA Advertising + Marketing and am looking for a skilled PW dev to work on a migration of one of our client's site's, which is currently on Joomla 1.5, into ProcessWire. We've been using ProcessWire for more than a year now and absolutely love it. Here are a couple of examples of site we've built using it: http://agencypja.com http://www.more4thepeople.com Our team has begun the work, but want to complete the job by the end of January and so are hoping to find someone to do some basic (moving pages into an existing template) to intermediate (creating new fields and templates) level work. If we were able to find someone with more advanced skills (creating the customized search system, for example), that would be a bonus. There will be basic HTML, CSS and possibly Javascript work as well. Familiarity with git is a bonus. Depending on the hourly rate, we could potentially offer 40 hours a week of work until the end of January. Ideally we'd be working with someone in the US, but it's not a requirement. The most important factors are: 1) skill with ProcessWire, 2) ability to work well with me and my team, 3) speed and 4) hourly rate. The site we're moving is http://www.westlakehardware.com We've got the home page and a couple secondary pages setup, as well as some IA work around how categorization will work. Other than that... well, there's plenty to do Looking forward to hearing from anyone who's interested. Cheers, Evan McDaniel emcdaniel@agencypja.com
    1 point
  25. Glad to hear that thanks for your kind comments, everyone. Well, I really fell in love once more with the simplicity and the workflow of PW. Just added an RSS feed. I definitely like how flawless things work together. As a former Drupal user I can say that it's really great to have such control about everything - that's exactly how I want the things to work - things should work without any unexpected behaviour and without too much extra effort.
    1 point
  26. Okay, no problem. Thanks Ryan. I'll probably be getting a license in the next few days anyway.
    1 point
  27. I meant Nico <sings badly>Oh oh, diogo, Nico, whoah, don't go</sings badly>
    1 point
  28. Antti, Here is how I currently have them working (see additional dates is screenshot). I haven't given that scenario a lot of thought yet.
    1 point
  29. Hey Antti, Not a theme (yet) - just a few CSS tweaks I made. Nico has seen it and keeps encouraging me to make a theme out of it.
    1 point
×
×
  • Create New...