Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a specific template for Live Preview #1080

Closed
angrybrad opened this issue Jan 31, 2017 · 5 comments
Closed

Use a specific template for Live Preview #1080

angrybrad opened this issue Jan 31, 2017 · 5 comments

Comments

@angrybrad
Copy link
Member

Created by: MattP ([email protected]) on 2016/01/11 18:32:18 +0000
Votes at time of UserVoice import: 4


Would like to be able to configure a specific (or multiple) templates for use in Live Preview.

Use cases may vary - ours involves being able to render an entry 'surrounded' by mobile phone hardware thereby giving the client/content admin a good idea of what it would look like 'in-hand'

Completely appreciate that mobile responsive templates will cater for 90% of this, but asking a client to resize their browser is a step too far for some.

Happy to discuss and develop the idea...

@angrybrad
Copy link
Member Author

Posted by Tom De Smet ([email protected]) on 2015/03/11 09:29:42 +0000


It would also be great to extend this feature with a drop down list in the live preview window of all the templates you wish to be able to preview for that entry.

For example: if you edit a detail page of a product that is also featured on the homepage, you maybe want to see how it is changed there too before publishing on the live server. You would than be able to switch preview templates with the drop down from within the edit entry window.

@angrybrad
Copy link
Member Author

Posted by Sean O'Grady ([email protected]) on 2015/03/19 11:14:36 +0000


You can mimic this by using craft.request.isLivePreview in a conditional and including the appropriate template in Twig

@angrybrad
Copy link
Member Author

Posted by Christian ([email protected]) on 2015/03/09 00:49:13 +0000


Yes, please! This would allow to enable Live Preview for entries that don't have an URL via the section configuration and where Live Preview can't be enabled currently. Here's an example where Live Preview makes sense but the default URL is disabled:
http://craftcms.stackexchange.com/questions/8226/is-it-possible-to-view-expired-entrys-on-the-front-end

@carlcs
Copy link
Contributor

carlcs commented Feb 3, 2017

@miralize that's not true, you can't get LIve Preview to work without enabling "Entires have a URL" in section settings.

@brandonkelly
Copy link
Member

Closing this because #1489 makes a better case for the same general idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants