I am relatively need to Toolset and I am trying to setup a scientific manuscript subscription form. A user registers to our site and has access to a private My Account (done successfully). The user wants to submit a manuscript and enters the 'manuscript submission page'. In the 'manuscript submission' I'd like to implement the following:
- The author can start the submission of a new post type called 'manuscript' (easy to implement). This is done from the front-end, through the page 'manuscript submission'.
- The manuscript will have specific fields (such as title, abstract, etc.) (easy to implement);
- The manuscript will have associated authors with their fields (name, affiliation, etc.). Each of these authors should be treated as a new post type called 'author'. Therefore the user should be able to edit, add, remove, and arrange the order of the authors, within the 'manuscript submission page'.
- A relationship between manuscript and author types is automatically established. The reason for having this relationship is that later on we want to be able to perform queries based on the authors or on the published manuscript, i.e. the published manuscript should display a list of authors, and an author should display the list of associated published manuscripts.
- The user can save the manuscript as a draft and return later on to My Account to edit the manuscript.
- The user can start the submission of another manuscript and see the list of saved manuscripts in My Account.
- The user can change the status of the manuscript from 'draft' to 'submitted'. However, once the manuscript is submitted the user won't be able to edit the manuscript, but only see the submitted version.
You can find similar examples in any manuscript journal websites. For example check hidden link. I have created a dummy account. User: johnpollo. Password: johnpollo108. Click on 'Submit Manuscript', scroll down and click on 'Submit'. Click on 'Manuscript Information', Authors.
I'm implementing on my local machine, the website in not online yet.
Hello,
There are lots of questions in this thread, we can handle them one by, lets talk about the post type structure first.
In your screenshot:
hidden link
It seems that:
One "manuscript" post can connect to multiple "author" posts,
and one "author" post can connect to only one "manuscript" post,
If it is, you can one-to-many relationship between post type "manuscript" and "author".
https://toolset.com/documentation/post-relationships/
If one "author" post can connect to multiple "manuscript" posts too,
Then it needs many-to-many relationship between post type "manuscript" and "author".
See above document
Then in a single "manuscript" post, you can setup a view to display related "author" posts
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items
Same as above, in a single "author" post, you can setup a view to display related "manuscript" posts.
Hi,
Thanks for the reply. I have sorted out points 1, 2, 5, 6, and 7 myself.
I still have issues with the relationships.
I have created two custom post types: Manuscripts and Authors. I have also created a many to many relationship between Manuscript and Authors. There is also a field group for Manuscript describing the type of relationship, which includes ‘author contribution’ and ‘author order number’. This is implemented because a Manuscript can be written by many Authors; where each Author is listed according to a certain order and each of them gives a specific contribution to the manuscript.
When I edit a new Manuscript post from the BACK-END everything is fine (see Figure 1 and 2).
However, I want to replicate exactly the same functionality in the FRONT-END.
It is currently possible for a user to create a new Manuscript from the FRONT-END. However the auto-generate fields function in the ‘edit post for cell’ used to implement this functionality does not include what is required to add an arbitrary number of Authors connected to the current Manuscript. In the FRONT-END I need to have the same block shown in Figure 2, called ‘Manuscript Authors’ with the buttons ‘Add new Author’ and ‘Connect existing Author’.
How can I do that?
On WordPress front-end, you can setup Toolset relationship forms to connect exited Manuscripts and Authors posts, see our document:
How to Build Front-End Forms for Connecting Posts
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/