marcus Posted October 15, 2014 Author Posted October 15, 2014 Resurrecting a brilliant topic. Working on it. Want it online asap, but can't assign enough time to it at the moment. But hoping for the coming weekend to make a huge step forward. 1
Nico Knoll Posted October 16, 2014 Posted October 16, 2014 Hadn't have a lot of time recently. Started studying. Maybe in some weeks 1
owzim Posted November 7, 2014 Posted November 7, 2014 Three days at Beyond Tellerand made @marcus and me spawn some great ideas for this. One of which is that we will maintain a text-based repo of recipes, so that they are decoupled of any database, are properly version controlled and anyone with a GitHub account can contribute easily. This may be great opportunity for those of you who have not yet been using something like git to finally dive into it.I wrote an importer module, which already works pretty well. The rough structure is decided upon as well.Let's get it on! PS: we also met nico one day, what a very nice fella he is .. I had too much to drink that night though 11
marcus Posted November 17, 2014 Author Posted November 17, 2014 (edited) We plan to launch in a few days. If you'd like to help us having a proper starter set of recipes, please contribute via adding to this GitHub repo: https://github.com/processwire-recipes/ProcessWireRecipes (the recipe files themselves can be found at /site/recipe-txt-files) Recipe files are plain text files written in markdown (here is an example of their intended structure). Owzim's awesome RecipeInstaller module makes it possible to easily convert them into ProcessWire pages. edit: recipe txt files will be outsourced in a separate repo to simplify things, here is said repo: https://github.com/processwire-recipes/Recipes Edited November 26, 2014 by marcus 2
Joss Posted November 17, 2014 Posted November 17, 2014 I have been doing something a little similar for myself just using a google site, though I have also started using onenote for bits. Yeah, I know, very un-codey! But I like the notebook/tabs/pages arrangement. Easy to find things. 1
marcus Posted December 5, 2014 Author Posted December 5, 2014 (edited) So, let's launch this finally! › https://processwire-recipes.com/ ‹ As you can see, it's a work in progress. The design is going to change, Nico at the helm, and once we got a "critical mass" of recipes, another way of structuring recipes (the "table of contents") will also go online. To contribute, you can post your recipes either in this thread and we'll pick it up, or - codey - via Pull Request on GitHub of this repo here. Frankly, that's the favoured way, simple and a good start dive in to GitHub and this form of Open Source contribution. As always, feedback (and of course, contribution) is really welcome. We're always eager to learn - and helping to learn new stuff and create a place to spread some PW knowledge, that's what PWR was about in the first place Big big thanks to my partner in crime owzim who, among other things, contributed the - imho - heart of this tiny project: a textfile-to-page-importer. Finding an elegant way to contribute was one of the reasons this took so long, and during Beyond Tellerrand conference, it finally clicked into place. Edited December 6, 2014 by marcus 20
mr-fan Posted December 6, 2014 Posted December 6, 2014 Great in lack of time i post here some links with description: 1. adrian - copy page via api https://processwire.com/talk/topic/7101-easy-way-to-clone-a-page-from-api/#entry68465 2. harmster - using csrf in own forms https://processwire.com/talk/topic/3779-use-csrf-in-your-own-forms/ 3.horst - implement a global ultility function lib/file https://processwire.com/talk/topic/7573-best-way-to-implement-a-global-utility-function/#entry73157 4. nico - reset password via api https://processwire.com/talk/topic/7167-server-error-with-latest-dev-build/#entry69041 5. yellowled - list/filter items https://processwire.com/talk/topic/7673-list-items-or-contacts/#entry74444 for the moment - i will catch the repo until i've the time....it's christmas you know for most germans this not really a quiet time.... 3
marcus Posted December 6, 2014 Author Posted December 6, 2014 Thanks for your contribution, mr fan, we'll include in after we finished small adjustments in the recipes structure. In other news, you can now subscribe to new recipes via RSS or Twitter. 2
mr-fan Posted December 6, 2014 Posted December 6, 2014 great! What i really would like (and i know that owzim and you think about that topics!!) is voting/starring a recipe... may be this module from conclurer (Marvin and Phillip) https://processwire.com/talk/topic/7871-page-ratings/ or fieldtyp starrating: https://processwire.com/talk/topic/4561-fieldtyperate-star-rating/ regards mr-fan 2
LostKobrakai Posted January 3, 2015 Posted January 3, 2015 I have a small feature request. How about a rss feed to get a notification about new recipes. This could maybe been integrated here in the forum sidebar, too. 1
marcus Posted January 3, 2015 Author Posted January 3, 2015 (edited) See two posts above, such a feed already exists https://processwire-recipes.com/feed edit: Regarding sidebar implementation: We'd by honored, but of course this is Ryan's decision to make. Edited January 3, 2015 by marcus 1
LostKobrakai Posted January 3, 2015 Posted January 3, 2015 Than it would be nice to at least include a link to the rss feed on the actual site. That's where I looked for it. 1
marcus Posted January 6, 2015 Author Posted January 6, 2015 Than it would be nice to at least include a link to the rss feed on the actual site. That's where I looked for it. Implemented! 1
mr-fan Posted January 10, 2015 Posted January 10, 2015 One really great if found today to collect: Soma - Using Imagetags like a Boss.... https://gist.github.com/somatonic/5808897 saved the evening for me - searching this forum is better than to talk with 100 experts while every second forumentry is a hidden treasure sometimes!! Best regards have a nice weekend - mr-fan 1
marcus Posted January 14, 2015 Author Posted January 14, 2015 One really great if found today to collect: Soma - Using Imagetags like a Boss.... https://gist.github.com/somatonic/5808897 saved the evening for me - searching this forum is better than to talk with 100 experts while every second forumentry is a hidden treasure sometimes!! Best regards have a nice weekend - mr-fan Thanks! Nice find. Has now found its way to PWR. 2
owzim Posted January 14, 2015 Posted January 14, 2015 Soma's gists are goldmines for recipes, although some might be a bit extensive for recipes. 2
apeisa Posted January 14, 2015 Posted January 14, 2015 Marcus & Owzim, great project - looking forward for contributing every now and then (just created one pull request)! 3
Martijn Geerts Posted February 20, 2015 Posted February 20, 2015 One for https://processwire-recipes.com/ Output a Pagearray as: beer, rum, wine & whisky (note the '&' and don't get drunk) $count = count($pagearray); foreach ($pagearray as $key => $p) { $divider = ($key + 1 === $count) ? ($count === 1 ? '' : ' & ') : ($key === 0 ? '' : ', '); $out .= $divider . "<a href='$p->url' class=''>$p->title</a>"; } echo $out; 3
LostKobrakai Posted February 20, 2015 Posted February 20, 2015 Just keep in mind something like this would break it, as keys are not recalculated. $pagearray->remove($somepage);
Martijn Geerts Posted February 20, 2015 Posted February 20, 2015 Good one (didn't thought about that) on the other-hand that is how arrays work. You could use the array_values function to reset the keys of the array. $pagearray = array_values($pagearray->getArray());
diogo Posted February 20, 2015 Posted February 20, 2015 Or: $last = $pagearray->pop(); echo $pagearray->implode(', ','title') . ' & ' . $last->title; 2
LostKobrakai Posted February 20, 2015 Posted February 20, 2015 Edit: Somehow I had something crazy and wrong in mind with this. if(count($pagearray) > 2){ $last = $pagearray->pop(); echo $pagearray->implode(', ', 'title') . ' & ' . $last->title; }else echo $pagearray->implode(', ', 'title'); 2
Martijn Geerts Posted February 20, 2015 Posted February 20, 2015 Nice one Diogo But it needs a ltrim or something. $last = $pagearray->pop(); echo ltrim($pagearray->implode(', ','title') . ' & ' . $last->title, ' & '); 2
diogo Posted February 21, 2015 Posted February 21, 2015 Just to keep PHP functions out of it $last = $pagearray->pop(); echo $pagearray->implode( ', ', 'title', array('append' => ' & ') ) . $last->title; 4
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now