I'm creating a comment system on our website. So I created a asset builder and asset listing page then applied a new paint layout to it. I only have two fields on the asset builder page for people to enter information - their name and a comment. But I preview to test, I can enter details in but these don't clear after I click on submit. Can someone please tell me what I need to do to get these to clear out.
Creating a commenting system
It sounds like your asset builder might be nested into a cached page? If that's the case you'd need to prevent the page that it's nested into from being cached by both Matrix and Squid, or you could AJAX in the asset builder and AJAX submit the form, which would allow you to keep caching the rest of the page.
It sounds like your asset builder might be nested into a cached page? If that's the case you'd need to prevent the page that it's nested into from being cached by both Matrix and Squid, or you could AJAX in the asset builder and AJAX submit the form, which would allow you to keep caching the rest of the page.
That isn't true. Asset Builders work fine nested into Standard Pages or wherever. I have been doing it for years. I currently have a comment system working exactly like this.
beaccessible, are you saying the form doesn't submit? Do you see any JS errors? Are we able to see the page?
That isn't true. Asset Builders work fine nested into Standard Pages or wherever. I have been doing it for years. I currently have a comment system working exactly like this.
beaccessible, are you saying the form doesn't submit? Do you see any JS errors? Are we able to see the page?
I think it depends on your caching strategy and structure, both matrix and proxy. I have seen this happened before, especially with custom forms and asset builders.
Does the comment actually get created after you click submit?
I think it depends on your caching strategy and structure, both matrix and proxy. I have seen this happened before, especially with custom forms and asset builders.
Does the comment actually get created after you click submit?
I can see Squid screwing with it. But I have never seen issues with Matrix cache screwing with nested Asset Builders.
Here is the page http://www.beaccessible.org.nz/the-movement/be-moments for you to view
Yes I can see the comment being created in the Matrix and also it displays on the asset listing page I've created.
I think it might be a browser behaviour thing as opposed to a matrix one - I notice you don't have your fields inside a form element. That could possibly be the reason why it's not working properly.