You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
giannik
changed the title
In templates the Preview button always renders thye home page
In templates the Preview button always renders the home page
Aug 7, 2021
That's because these templates are not assigned to any specific content item of any content type. Maybe it could create a temporary content item of some content type to display it. Else, it will require some thinking.
I believe that if you then navigate the preview page you can reach a page that contains the template you are editing. Otherwise there is no way to know which preview to open. You might even want to test the template on different pages.
I noticed that too, the #16072 is fixing the preview issue, but the default implementation always open the home page, I was thinking when I was working on the PR to come up with an idea to open the related content, this might be tricky because
Template naming is by convension
Propbably there's no content items for such content type
In the templates from the admin there is preview button but this always renders the home page.
Is this deliberate or am i missing something ?
The text was updated successfully, but these errors were encountered: