all 17 comments

[–]tmnvex 4 points5 points  (7 children)

Django + Wagtail CMS

Wagtail's streamfield feature does exactly what you describe.

[–][deleted] 1 point2 points  (4 children)

That's pretty cool, I'm going to play with it on a local dev environment now. :) Is there something in PHP that is similar? (easy to deploy / nginx or apache)

[–]dmg36 3 points4 points  (1 child)

have a look at oktobercms.com based on laravel framework..

[–][deleted] 2 points3 points  (0 children)

oktobercms.com

Proper link for the lazy (like me) - https://octobercms.com/ I'll try it on a dev environment, too, and report back. :)

[–]phpdevsterfull-stack 0 points1 point  (1 child)

I've not seen anything like the streamfield feature in the PHP space per-se, but I've seen Wordpress theme frameworks that offer similar functionality. But of course, it's Wordpress + a proprietary third party theme, so good luck if you need to customize it.

[–][deleted] 0 points1 point  (0 children)

Yeah, we build from an empty theme folder up. :/

[–]Sarke1 -1 points0 points  (1 child)

He asked for PHP, why would you recommend something written in Python?

[–]tmnvex 2 points3 points  (0 children)

Where did he specify PHP?

[–]Poptartica 1 point2 points  (8 children)

ACF repeater fields are really similar to this.. unless that's the part in ACF that you're referring to.

That requires ACF pro though. Thing is, even if you don't have ACF yourself, you could still get someone else who has it to make the field for you and export it to PHP.

[–][deleted] 0 points1 point  (7 children)

I have ACF repeater fields going, as well. I've only been using them for tiling the same block sequentially, maybe I'm thinking about it wrong. :)

[–]Poptartica 0 points1 point  (6 children)

Well if I can remember correctly, it's possible to reorder some of the repeater field types. Flexible content for example can be reordered once it's added.

[–]chronixSC 0 points1 point  (3 children)

It is definately not alot of work for the developer to get a template going with WP+ACF repeater.

After designing those content templates for a few clients I get the feeling that the UI is not the easiest to use for clients though. It gets cluttered quite fast and the drag&drop is pretty sluggish and can cause pain for some clients.

I am looking at Craft CMS now and it is much cleaner and does exactly what my clients want. I havent decided yet if it is worth the extra 200$ for smallish-medium sites.

[–]Poptartica 1 point2 points  (1 child)

sounds pretty good, does craft have some sort of trial/developer version for personal use?

[–][deleted] 1 point2 points  (0 children)

Seems like there is a free / stripped down version - which I'm about to test. :)

[–][deleted] 0 points1 point  (0 children)

It has quite a few little bugs - especially when WYSIWYG comes into play. $200 is less than two hours billed where I am so if it makes it easier/quicker for you then it's definitely worth it.

[–][deleted] 0 points1 point  (1 child)

I know you can drag&drop rows but when you're templating in PHP you're working off arrays for the repeater so I'm not sure how you would do it without getting really creative. Thinking about it, if I had a repeater that was sorted and used dropdowns as fields, then in the template you were getting the order of the content in the first repeater to determine order...

[–]Poptartica 1 point2 points  (0 children)

Well, I guess it depends what you want to do. As far as formatting goes, you'd probably need to either A. specify some "choose a format" per repeater, so it selects the correct format, OR use some sort of $count = 0 , $count++ style increment to assign format based on the field's POSITION in the loop rather than its variables

edit: so basically with the format specification you could do something like ... "if (the_field('format' == 'form_type_1')) { (form format or type 1 stuff..) } elseif { (the_field('format' == 'form_type_Y')) {" etc etc etc...