Closed williamspiro closed 3 years ago
I think this makes sense. I think we'll likely want to make sure it is clear that it would be sample data and similar to the blog editor the example content shouldn't show on the live page so we might need to use something like {% if is_in_editor %}
.
Checklist for where this is needed:
This should be wrapped up. Did this for all modules with the exception of role listing and featured roles which should render fine in the editor. For application details, application listing, and role details I added some fake data for the editor that should just plug into the same variables that the actual data is pulling into. Looks something along the lines of
if you're not in the editor -> use actual data -> else -> use fake data and this way the actual HTML portion only needs to be added once below where we are adding in the real and fake data. I'll likely try to clean this up a tad but should be in a good starting point for all of the modules.
To make the editor for the dynamic detail page lok better, should we consider something like this so some sample data shows up?
@Stefanie899 @jasonnrosa