philipS-3
Support threads created in the last 30 days: 1
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Toolset Blocks is causing Editor Issues
Started by: philipS-3 in: Toolset Professional Support |
1 | 6 | 1 week, 6 days ago | ||
Change of CPT Slug creates issues with Relationsship
Started by: philipS-3 in: Toolset Professional Support |
2 | 7 | 1 year, 6 months ago | ||
Allow for tags to be ordered by order added, not in alphabetical order in a view
Started by: philipS-3 in: Toolset Professional Support |
2 | 12 | 1 year, 10 months ago | ||
Conflict between Toolset Access Control and MP Downloads / Capability Question
Started by: philipS-3 in: Toolset Professional Support |
2 | 10 | 1 year, 10 months ago | ||
Toolset Access is conflicting with Menu Settings
Started by: philipS-3 in: Toolset Professional Support |
2 | 2 | 3 years, 7 months ago | ||
Front-End Editing and Deleting of Post Relationships
1
2
Started by: philipS-3
in: Toolset Professional Support
Problem: I have a many-to-many (M2M) post relationship between two custom post types. I would like to be able to manage the custom fields applied to the relationship and also delete relationships from the front-end of the site using Forms. Solution: Since there are some limitations with the Block Editor, the next step is to create an unassigned Content Template and choose to use the classic editor (link at the bottom of screenshot 1-classic-editor.png) to edit the template. Then use the Forms button above the editor to insert the Relationship Form, and choose to create an "editing mode" template in the Form popup (2-editing-mode.png). Insert the shortcode and you'll see a shortcode appear in the template, like so: [cred-relationship-form form='ranks-and-chapters'] Now you have an editing mode template for editing this relationship. In the loop of the View of related LCA Databases posts, you need to insert a Relationship Link to edit this relationship. The limitation here is it's not possible to generate this link from Blocks. Instead, you can use this shortcode as a template. Edit the code as described below and insert in a paragraph block: [cred-relationship-form-link form='ranks-and-chapters' role_items='$fromViews' content_template_slug='ranks-chapters-editing-mode']Edit this CustInt[/cred-relationship-form-link] Replace ranks-and-chapters with the slug of your Relationship Form. Replace ranks-chapters-editing-mode with the slug of the editing mode Content Template you just created. Replace Edit this CustInt with the text you want to display for the link. Save the Tools Content Template and visit the Umberto Tool post on the front-end of the site. Now in the View of related LCA Databases you should see a new link to edit the relationship. Click the link to see the Edit Relationship Form, where you can manage the custom fields associated with this relationship. To delete the relationship, use the Forms shortcode in the loop of the View of related posts: [cred-delete-relationship role_items='$fromViews' relationship='relationship-slug' redirect='self']Disconnect[/cred-delete-relationship] This will create a "Disconnect" link that will allow your Users to disconnect the M2M relationship from the front-end of the site. |
2 | 20 | 3 years, 10 months ago |