Allows create and edit workflows through EditEngine. Not sure I did the 'blog' stuff correct.
Details
Details
- Reviewers
epriestley - Commits
- Restricted Diffusion Commit
rP10ed33052361: Update PhamePost to EditEngine
Create a new post, edit a post, move a post.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think the blog stuff is OK. We might be able to clean up the part where it loads it eventually, but that seems fine for now.
Let me take a look at hooking up previews on top of this.
src/applications/phame/controller/post/PhamePostEditController.php | ||
---|---|---|
34 | We should have a if (!$blog) { return new Aphront404Response(); } bit here. |
Comment Actions
You should be able to use setPreviewPanel() to get the previews working now after D14887, let me know if you run into issues.
Comment Actions
- !blog
- update to new edit stuff
src/applications/phame/editor/PhamePostEditEngine.php | ||
---|---|---|
35 | This causes issues if actually trying to create a new blog post form, since $blog is required for a new post. Not sure what the correct fix is. |
Comment Actions
I think you can probably do something like this:
$viewer = $this->getViewer(); if ($this->blog) { $blog = $this->blog; } else { $blog = PhameBlog::initializeNewBlog($viewer); } return PhamePost::initializePost($viewer, $blog);
Basically, just make a dummy empty blog for the meta-edit-form-edit stuff.