getLivePreviewUrl() #16434
-
|
Like This would be a great addition for casual users, as this is one of the most user friendly parts of the cp. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
I just added a new You can render links to it like so: {% if canSave(entry) %}
<a href="{{ cpUrl("preview/#{entry.id}") }}">Edit this entry</a>
{% endif %} |
Beta Was this translation helpful? Give feedback.
-
|
So good, thank you!! |
Beta Was this translation helpful? Give feedback.
-
|
Somewhat related to this, I would love to be able to include the Live Preview link in the element listing table too. |
Beta Was this translation helpful? Give feedback.
I just added a new
preview/<elementId>control panel route for Craft 5.6, which renders a standalone Live Preview editor for an element (#16441).You can render links to it like so:
{% if canSave(entry) %} <a href="{{ cpUrl("preview/#{entry.id}") }}">Edit this entry</a> {% endif %}