Questions tagged [live-preview]

Craft CMS allows editors to preview their content as they create and edit. This tag relates specifically to using and integrating with the live preview feature.

See how your content will look before it goes live with Live Preview. You can even share your work with others by clicking on the Share button.

From: https://craftcms.com/features/live-preview

One of the biggest roadblocks in getting editors to use a CMS is fear of breaking things. The live preview feature of Craft CMS helps editors to feel empowered, and is a great way to help sell the CMS.

67 questions
6
votes
3 answers

Live preview not automatically updating

any help would be much appreciated. I have Live Preview working on my entries ie. I can see and use the button, but the live preview won't update as I manipulate the content? It was working before so it is baffling me as to how it could stop…
user630
  • 61
  • 4
4
votes
1 answer

Live Preview has No Style

I am a complete novice. Live Preview does not seem to be accessing the stylesheets, which are called in my _skeleton.html. My template is sample.html. I am live, not in dev environment,in case that matters. And this is a single, not channel or…
3
votes
1 answer

Live Preview Items Without Entry URL

This may be a silly question or a pipe dream, but i was wondering if there is a way to have a live preview for entries without a URL. For instance i have a complicated layered slider on the homepage of a site I am building and due to it's complexity…
Christopher Healey
  • 1,378
  • 1
  • 11
  • 27
3
votes
1 answer

Apply different classes and styles when in 'live preview' pane

Is there any way of adding a class onto a page body when it is viewed within the 'live preview' pane? I can then use this to make things either show or not show. I want to do this to highlight specific things to content editors that I don't feel are…
ianp
  • 163
  • 12
2
votes
1 answer

Live preview not working for CORS

For production site, the backend url is like - 'www.abc-prod.com' While the actual live site url is - 'www.xyz.com' When opening live preview for an entry, page never loads. Instead '301 Moved Permanently' is the status of response. I have enabled…
Amey Dahale
  • 133
  • 4
2
votes
1 answer

.find() not working with live preview?

I have an Entry Type with a field called Gallery with a handle of gallery. Here are two examples of how I can access the Gallery field in a template: {% set images = entry.gallery %} {% set images = craft.assets({ source: 'images', …
Peter Tell
  • 1,828
  • 12
  • 19
2
votes
1 answer

Live Preview only works with published entries

We have a site where Live Preview only works with entries that have been previously published. When trying to preview entries we're working on (or drafts), we see either the latest entry for that section instead - or sometimes the correct entry…
Mike
  • 699
  • 3
  • 19
2
votes
1 answer

Live Preview: Hide tabs from live preview

I've noticed that Live Preview mode includes fields from all tabs. Is it possible to specify tabs to be left out of the Live Preview display? For example, if you have an 'SEO' tab which consists of meta data it's not relevant to include this in the…
Ian Young
  • 584
  • 3
  • 9
1
vote
1 answer

Fetch locale entries does not work in Live Preview

I need to display booth local and localized entries in the same page. So I fetch the different localized entries like this : {% set localeEntry = craft.entries.id(myEntry.id).site('default').one() %} {# get the locale data #} {% set enEntry =…
scandella
  • 53
  • 5
1
vote
1 answer

Where to enter URL for Live Preview in Craft 3?

Pretty sure I've seen where you can enter the URL for an entry type so Craft knows what page to display during live preview. But I can't find that now. I'm looking in the entry types, and I can't think of anywhere else it would be. Am I going crazy?…
BBaysinger
  • 339
  • 1
  • 15
1
vote
1 answer

Live Preview and Twig blocks

I'm using {% block content %} and a main layout file. When using live preview the "entire" frame isn't shown (including layout files). Is there an easy way to get the whole template in?
nexflo
  • 539
  • 4
  • 13
1
vote
1 answer

Description and logo at the very top of browser?

All, After we switched from Wordpress to Craft our site description and logo at the very top of the browser tab have been disappeared as shown in the image. Could you please guide me how can I achieve this?
Jai
  • 73
  • 5
1
vote
1 answer

Live Preview not working in some sections

Live preview works in some sections, but not ones that use routes and have "entries in this section have their own urls" deselected. Is this expected behaviour? Is there any way to use live preview on these sections?
user7150
  • 61
  • 3
1
vote
2 answers

Live Preview failing in Safari and Firefox only

New Craft user here and I am working on wrapping up my first Craft site and am running into a Live Preview error. When Live Preview is activated in either Firefox or Safari, I just get a blank white page and am getting this error thrown in the…
1
vote
1 answer

Live Preview error when entry is disabled

When the entry is disabled, the Live Preview only shows things which are outer of the main loop. This is a part of my code: {% include "header.html" %} {% for entry in craft.entries.section('flashback') %}
1
2