- 🇺🇸United States brianperry
This seems like it will be difficult to solve due to the fact that the entity doesn't exist yet. Will be hard to find a way to create that without actually publishing something before the user expects.
In absence of that, I wonder if we should also hide the traditional preview button here as well.
- 🇺🇸United States apmsooner
@brianperry - my module https://www.drupal.org/project/simple_decoupled_preview → can handle this functionality and works with existing preview button. I'd be happy to demo how it works if you need that functionality. I honestly thought your module was doing the same thing but then I came across this and realized that you must be creating a generic way to view saved content through the iframe. Let me know if I got it wrong as I've referenced your module in the alternatives on my project page to explain the difference.
- 🇺🇸United States brianperry
Thanks for checking in @apmsooner and sorry for the delay in response here.
Would be happy to catch up at some point for a demo. If my memory serves me, the reason that this doesn't work for us today is related to how were keying things by uuid in the temp store. And the uuid doesn't exist yet when a new node is being created (at least based on how we were determining the UUID.) Confident that this is a solvable problem, we just haven't gotten around to it.
In general it also seems like there are possible opportunities to put our heads together in the future. We have similar goals and also seem to have pretty similar implementations. https://www.drupal.org/project/same_page_preview → falls into that category as well, and has wanted to be able to handle decoupled use cases as well.