When trying to use Live Preview, I’m seeing the last added entry in between the live content. Live Preview works but I’m seeing two titles (one live and one from the last entry).
I wonder if I am doing something wrong inside the channel entry tag. When I close all entries, live preview works. This channel also has other statuses other then open/closed.
{exp:channel:entries channel="xxx" limit="1" disable="categories|category_fields|member_data|pagination"}
This only happens when trying to publish a new entry, previewing existing entries (with existing saved content) works fine.
Maybe someone has any ideas? Thanks.
Yes I’ve seen this, saving the new entry first cures it.
It’s also a good idea to modify the entries tag to add custom statuses in your preview template:
{exp:channel:entries channel="xxx" limit="1" disable="categories|category_fields|member_data|pagination" status="open|featured{if is_live_preview_request}|closed|pending{/if}"}
…that way the author can see the preview no matter what the status.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.