Submitted by WindTalk in Postmill (edited )

Hi, limited progress is here: https://gitlab.com/WakeRealityDev/Postmill/commits/DemoBlogIntegrate2

Steps to try out the code:

  1. Git checkout the Postmill DemoBlogIntegrate2 branch
  2. Git checkout the sympfony demo Blog app https://github.com/symfony/demo to some other folder on your system
  3. edit bring_in_Symfony_demo_files0.sh to point to your local path from step 2 on the symfdemo=
  4. execute bring_in_Symfony_demo_files0.sh from the root of Postmill project
  5. Do the remaining Postmill install steps as desired. It will add some extra tables to your PostgreSQL database, so you may wish to start with a different testing database.

Once running, Postmill should behave as expected, no new bugs. Seems to so far.

Login to Postmill as an admin user. The login systems for the two apps aren't designed to be identical, but at least want to get some aspects of the code running. Added URLs for the Blog demo code should be: http://localhost:8000/admin/post/new and http://localhost:8000/admin/post

The central portion of the web pages for admin/post are currently showing blank pages, which is where I'm stuck. Is the CSS causing it?

3

Comments

You must log in or register to comment.

WindTalk OP wrote (edited )

Postmill and Symfony demo seem to use different method of registering routes. The Symfony demo code uses @Route tags? I couldn't really figure out how to combine the two methods, so I hacked in some entries to config/routes.yaml to make it work with the Postmill method?

3

WindTalk OP wrote

Ok, I think I figured out the difference between the two apps... the Symfony demo has annotations @Route tags enabled via ./config/routes/annotations.yaml - where Postmill does not use them.

1

WindTalk OP wrote

So, where I'm stuck...

The templates/admin/blog/new.html.twig and other files are not showing any of the output in the "block main" section. However, if I copy the form code over to the "block sidebar" section (the right sidebar), it does show up.

Not sure how to resolve this conflict between the two apps and their output conventions.

3

WindTalk OP wrote

I brought in the base Twig template, but ran into troubles

Postmill and the Demo Blog app both use a src/Twig/AppExtension.php - and It isn't clear to me how to integrate them. The config/services.yaml for the Demo Blog app has 3 binding references that Postmill does not normally use, but I've been unable to figure out how to make those bindings work. templates/base.html.twig loops through the locales() function - and without those bindings working - it fails.

1

WindTalk OP wrote (edited )

Well, I was hoping to draw some help on this, and with emma's public departure and deletion of some technical info here... I may not continue this effort.

I do not know PHP and any of the PHP framework systems being used. But I can say from decades of experience: emma's code is very well structured and readable. As open source code goes, it's great, and in many ways I find it superior to the demo code that the Symfony project publishes! Emma has a great talent for organic growth of code, and her commit history shows a great ability to build up a functional app where basics are important. Emma also shows a regularity of motivation and contribution to the project.

I come from very very old social media, like 1980's social media, and I can say that the current Internet has a real problem drawing mom-and-pop cottage-operators for forums. I think Postmill is incredibly powerful and cheap to operate for a few thousand active users - and it emotionally bothers me how many users on reddit won't pick it up and go start their own independently operated/admin sites built around various topics. I just don't get why people can't see the problem of so much power concentrated in owners who care more about the brand and count of users.

The features of Postmill are good enough for most purposes, and feature wish lists aren't important. But emma clearly has made the code clean and able to be expanded by other developers... and there has to be experienced PHP people out there would be willing to make contributions.

Anyway, I'm not in the position to contribute good code on basic features. My hacking motives were motivated by some other projects I have, I was hoping to coattail on a project that was so cleanly coded and would attract a couple active developers. I still hope for that, as I really think Postmill's server efficiency and clean simplicity should encourage more small-time site operators.

In any event, if I have not made clear enough: Thank you emma.

3