Skip Navigation

[Resolved] Elementor Template Overrides Content Templates for display Post Editing Form

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by Christian Cox 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1164716

I have a CPT "Cake". It has an Elementor template assigned. So far so good.
I wanted to build an "Edit Cake" form - and I did, as described here

https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/?utm_source=formsplugin&utm_campaign=forms&utm_medium=forms-gui&utm_term=forms-editing-doc

I created a view, that shows all cake by an Author, and added the "edit post link" shortcode. When clicked, the link doesn't show the post edit form, instead, it shows the post. When I temporarily deleted the template in Elementor - it worked OK.

Is there a way around this? i.e keep using the Elementor template, and have the edit cake form working?

Thanks

#1165058

Hi, you must update the latest version Elementor Pro to access the new integration features. To get the Edit Post Link to work, you must add a Post Content element to your Elementor single post template for Cakes. You must not assign a Toolset Content Template to single Cake posts. Then the Edit Post link from the View should redirect the User to the Cake single post URL with the content template ID in a URL parameter. The edit Form should appear on that page.

#1165418

Thanks
It worked - but...added the post content element at the end of the template, now I get all the Cake Feilds first, and then the form. Will it be possible to somehow show only the form when editing the Cake?

Example URL
hidden link

#1165626

As of now, that's not possible. The Form is displayed inside the post content area, which is displayed inside the Elementor Template. Hiding other portions of the Elementor Template would require custom code.

#1167447

"custom code" - could you give me an estimate of what it will take? Are there any hooks that I can use for this?

Thanks!

#1167891

In Toolset we have conditional HTML that can be used to show and hide content based on some variable, like the page URL or parameters. However, with Elementor it's not as straightforward to conditionally show elements because you can't wrap them in shortcodes like in Toolset. So that would require some assistance from Elementor to be able to conditionally display or hide elements, or to programmatically manipulate which Template is applied to the page. I'm really not sure how it can be done, so I don't have any examples to share.