Jump to content

ProcessWire Recipes


marcus

Recommended Posts

  • 4 weeks later...

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 :-X

  • Like 11
Link to comment
Share on other sites

  • 2 weeks later...

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 by marcus
  • Like 2
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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 by marcus
  • Like 20
Link to comment
Share on other sites

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....;)

  • Like 3
Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

One really great if found today to collect:

Soma - Using Imagetags like a Boss....

https://gist.github.com/somatonic/5808897

O0  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.

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

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;
  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...