-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can "New Post" create more than just the title? #456
Comments
I've been working on figuring this out, and I've gotten closer, but it's somewhat beyond my JS skills, so I'm going to need some help. To give you a little more detail: when someone clicks on "New Post", there is just a field for title. I need to add a field for "post content" and "category." Here's what I've figured out:
|
In |
Thanks! Yes, I found the createItemAndConnect method. I tried adding another parameter like this:
That generates a whole bunch of weird empty JS errors and breaks a whole bunch of things and doesn't work at all. If I do this:
Then obviously the second method overwrites the first.... the good news is that the second method does correctly save the post content, so that's a step in the right direction. But how would I modify this (and the CreatePostView method) so that it saves both the title and the content? Thanks! I really appreciate your help! |
You're going to have to learn the basics of JavaScript and jQuery to pull this off. Plenty of good, free tutorials online. Good luck! |
Basically, the first attempt, where you got empty errors, was the right path. You just need to learn how to populate the |
Thanks! |
@AlchemyCompSol in your first attempt you added
Note the second argument for the Right now it's just a logical assumption. You can try it, it should work. In a day or two I'll be doing this exact feature in a project Im working on, will share the results when I'm done. |
Thanks @ihorvorotnov ! Actually, I spent yesterday working with someone to figure this out. Here's what we came up with: In box.js:
In box.php:
In tab-create-posts.html
I hope that helps! |
Wow, you just saved me a bunch of time, thank you! :) I haven't even looked into that backbone part yet. |
Glad to help! I'm pretty sure I included everything, but if you want to see my full code, it's on Bitbucket - https://bitbucket.org/wpalchemist/chamber-dashboard-crm |
Thanks a lot! Will check it when I'm on this task. |
When someone creates a connection, and they click on "New Post", all they can do is create a post title. How can I let them create the post content as well?
The text was updated successfully, but these errors were encountered: