Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/2016 in all areas

  1. Hello, guys! I've started a new series of screencasts about ProcessWire. They are in german, if there is any interest I could record also the English version. Processwire is such a great CMS, I'm totally in love So I'm trying to convince more people to use it. https://www.youtube.com/channel/UCwkKKtIeOzfIqF8X5gNP0_g
    14 points
  2. Getting closer to the ProcessWire 3.x stable release, version 3.0.14 focuses largely on updates and optimizations specific to recent GitHub issue reports. We also have optimizations and in-depth coverage of PW’s file compiler, some new options for required fields, along with a review of some best practices when working with fields. https://processwire.com/blog/posts/processwire-3.0.14-updates-file-compiler-fields-and-more/
    11 points
  3. At X-com we build and maintain ticketingsoftware, named Itix. About 20 Dutch Theatres run our software and since we've dropped maintentance on our own CMS, we're slightly migrating more and more of those theatres towards a ProcessWire powered website. Using various API's and synchronisation tools, all needed information and actions are provided to the ProcessWire frontend, resulting in a cool e-commerce solution which is flexible towards the client and scalable for us. Another one was released this week, go see the result at http://www.maaspoort.nl The design was done by http://www.dejongensvanboven.nl The technical implementation by us at http://www.x-com.nl Other Itix theatres running on ProcessWire include: http://www.schouwburgvenray.nl/ http://www.dnk.nl/ http://www.rabotheater.nl/ http://www.deleest.nl/ http://www.hof88.nl/ http://www.demeenthe.nl/ http://www.muziekgebouweindhoven.nl/
    10 points
  4. http://modules.processwire.com/modules/admin-hot-keys/
    4 points
  5. While I agree with what Kongondo has posted above, easiest method for just about any form-related need is usually FormBuilder. FormBuilder is a commercial module, and if that's a problem (and you really just need a very simple contact form) I'd suggest taking a look at Simple Contact Form by Bea.
    3 points
  6. It's difficult to give a recommendation because: We don't know what your needs (for the form) are We don't know exactly what other 'modules and descriptions' you've looked at already. We might just refer you back to one of them We don't know what you mean by easiest We don't know what is a small, nice contact form (nice: are you talking about CSS here? small: number of fields?) We don't know how you wish to capture and store the form information (in a field, in some page?) OK, maybe it's just me who doesn't know these things . Your question is a bit vague. If possible tell us what exactly what you've already considered and what your needs are. Having said all that, any HTML form can be used as a ProcessWire form. You just need that and some template file and you are done
    3 points
  7. hi adrian, what do you think about integrating a w3 validator into the tracy bar? i was thinking about implementing this as a little module, but i think it would even be better to have this as an option built into tracy. or is it a gain a feature that's already covered anywhere?
    2 points
  8. In case you're looking for a way to separate your layouts from template-specific views and your business logic from front-end (markup) while still keeping things "editor friendly", you might want to take a look at one of the MVC-ish output approaches out there. My own take on the subject is available from GitHub as pw-mvc, and I've heard good things about the pvc boilerplate by fixate. Sorry for the shameless self-promotion, but I do think that this approach brings in some very real benefits, especially once things get more complex. Generating and concatenating pieces of markup with code just feels awfully clunky and, at least in my hands, often results in template files that are both ugly and hard to read
    2 points
  9. It's easy to overcomplicate things when reading through all the threads, so I'll try to draw up a simple example. In your Shop template's PHP code, you'll only need to iterate over your children (optionally filtered by template to only get your clothing categories) for the sub headline, then iterate over the clothing category's children to get all the articles for the gallery. <?php foreach($page->children as $category) { // optionally $page->children("template=your_category_template") echo "<p class='category'><a href='$category->url'>$category->title</a></p>\n"; echo "<div class='article_gallery'>\n"; foreach($category->children as $article) { echo "<a class='gallery' title='$article->title' href='$article->url'><img src='$article->imagefield->url'></a>\n"; } echo "</div>\n"; } I've used an assumed name for your pageimages field of "imagefield", this needs to be adapted to match your setup of course. Also, if the image field is set to return multiple images, you need to cater to that too using $article->imagefield->first->url. In your template for the category (shoes, socks etc.) you just need the inner loop. It may be tempting to use the same template for Shop and categories, but in the long run, it'll be easier to keep things concise with individual templates.
    2 points
  10. I have added this issue to Github. https://github.com/ryancramerdesign/ProcessWire/issues/1771
    2 points
  11. Your German is very clear to me, I think your screencasts will be useful for some language learning
    2 points
  12. You don't need to do anything different with your CSS than you would do on a static website - that goes for the MSN module, any PW module and PW in general. Your CSS just sits in a file linked in the <head> of your template. If I understand correctly you had an HTML page "start.html" and in PW you have successfully added a template "start" associated with template file "start.php". Lets use a simplified example and say start.php looks like this... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?= $page->title ?></title> <link rel="stylesheet" href="/site/templates/css/mystyles.css"> </head> <body> <ul> <li><a href="/page-1/">Page 1</a></li> <li><a href="/page-2/">Page 2</a></li> <li><a href="/page-3/">Page 3</a></li> </ul> <?= $page->body ?> </body> </html> ...and that unordered list is your menu. Let's also assume you have added those 3 pages to your PW website via the admin. Now you want to replace the static menu with a dynamic menu generated by MSN. You replace the menu markup with the call to MSN. No options are needed because your menu markup doesn't have any classes or anything not generated the MSN default. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?= $page->title ?></title> <link rel="stylesheet" href="/site/templates/css/mystyles.css"> </head> <body> <?php $nav = $modules->get("MarkupSimpleNavigation"); // load the module echo $nav->render(); // render default menu ?> <?= $page->body ?> </body> </html> But suppose your static menu does have some classes and also an item for the Home page. <ul class="main-menu"> <li class="menu-item"><a class="menu-link" href="/">Home</a></li> <li class="menu-item"><a class="menu-link" href="/page-1/">Page 1</a></li> <li class="menu-item"><a class="menu-link" href="/page-2/">Page 2</a></li> <li class="menu-item"><a class="menu-link" href="/page-3/">Page 3</a></li> </ul> Now you do need to set some options for MSN. <?php $nav = $modules->get("MarkupSimpleNavigation"); // load the module // set some options $nav_options = array( 'show_root' => true, 'outer_tpl' => '<ul class="main-menu">||</ul>', 'list_field_class' => 'menu-item', 'item_tpl' => '<a class="menu-link" href="{url}">{title}</a>' ); echo $nav->render($nav_options); // render the menu ?> Get the idea? So if you were using a bootstrap menu in your static website then you just need to use the MSN options array (and occasionally a hook if you have some more unusual markup) to tell MSN to generate the markup you want.
    2 points
  13. Setting up a contact form is an ever returning question so here you go: https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ https://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/ https://processwire.com/talk/topic/407-processing-contact-forms/?hl=+create%20+simple%20+contact%20+form
    1 point
  14. Browser extensions? I'm not sure if this feature is worth a (sub)module, unless it provides some benefits over them.
    1 point
  15. I used a form of this extensively on the last project: https://medium.com/@clsource/the-wire-render-pattern-806bf6d6097a#.zhn62bk3h to use a static html file / string replacement you would first load the html into a var: $tpl = file_get_contents($config->paths->templates . 'html/my-file.html'); $search = array('{{token1}}','{{token2}}','{{token3}}'); $replace = array( $replacement_for_token1, $replacement_for_token2, $replacement_for_token3, ); $content = str_replace($search, $replace, $tpl); there may be a better way to do this, or use a template engine, but this would at least allow you to use native syntax highlighting within your editor when looking at the html... for repeating structures you'd still end up with markup in your php code for each replacement
    1 point
  16. probably the best way is to make a Wirearray() and then add all of the images to that, then iterate of the Wirearray(); (you would iterate over the child pages and import the images to the wirearray;) also be careful because if you have the same named image in the wirearray it will de-duplicate it. http://processwire.com/api/arrays/
    1 point
  17. Hey Kongondo! Just bought the module! Awesome work! Only a little Problem: When using the Admin Theme Reno the Link to Media Manager won't work, because the main Links are not "linked" in the same way as in the regular templates. Two questions for my workflow: 1. Whats the best way to view the image in the frontend? Are there any MediaManager related methods? 2. Is there currently a way to categorize the images? Sometimes a bit more structure than tags only is even better! Thanks! Martin
    1 point
  18. Thank you all I did it like below : // Today Registrations $todaydate = strtotime("today"); $today_registrations = $users->count('roles=member,created>='.$todaydate); // This Week Registrations $weekdate = strtotime("last sunday midnight",$todaydate); $week_registrations = $users->count('roles=member,created>='.$weekdate);
    1 point
  19. Hi jmartsch, One solution would be to set your strings in the products.php template file and forward them to the view, for example: $view->set('strings', array( 'hello' => __('Hallo'), 'test'=> __('Test'), )); // ... products.tpl {$strings.hello} You could also organize all your translations in a single file and reference them via textdomain. Another possibility would be to register a smarty function which grabs your translation from a central file. Cheers
    1 point
  20. I read this today and I had to leave a comment that I was surprised that ProcessWire wasn't listed http://enews1.websitemagazine.com/q/GQHrt4sSbvpmSnbdz04dmYi1NrvF1N_P5r4tMHaRJ3-7-dKGhUTURRhbb
    1 point
  21. Since you asked for 'created' you can swap datefield in the example by @Alxndre' for created (we also have 'published')
    1 point
  22. Yup, just like that.
    1 point
  23. If your week starts on sunday $d = strtotime("today"); $start_week = strtotime("last sunday midnight",$d); $end_week = strtotime("next saturday",$d); $start = date("Y-m-d",$start_week); $end = date("Y-m-d",$end_week); and then filter your pages like this: $results = $pages->find("datefield>=$start_week, datefield<=$end_week"); where datefield is whatever date field you are trying to filter.
    1 point
  24. If the user salt is correctly deployed and your fields_pass table is also correctly moved there should be no problems. The only issue I can imagine is that one of your environments might support blowfish encryption and the other one doesn't, which would result in different hashing behaviors. A few words about your rant about users being part of the pages table: If you have just about any amount of user-generated / user-changeable content you cannot overwrite the db just with a sql dump. You'll need to go different ways if you need to deploy (possibly automatically) your database changes with a staging/live environment. Therefore it shouldn't matter that much if users are pages as well or not.
    1 point
  25. Media Manager Version 002 is ready Changes Specify allowed media types for a media manager field (i.e. the field you add to a template). Default is to allow all four types, i.e. audio, document, image and video. Setting is in 'Details Tab' of your media manager field Set the maximum number of media allowed for a media manager field (i.e. maximum per page). Set in 'Details Tab' Media Manager Field setting Example Media Manager Inputfield displays More media can still be added Media Manager field (for this page) full
    1 point
×
×
  • Create New...