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
{{ message }}
Repository navigation
Let Structure Listing channels use their configured Live Preview URL #5490
A channel can be a Structure Listing and use a separate ExpressionEngine template route for its public detail pages. For example, a news landing page can list items with {exp:channel:entries} and link to /news/detail/{url_title}, while Structure stores a separate URI and template for each listing entry.
When an editor opens Live Preview, the saved Structure URI and template take precedence over the channel’s Preview URL. If the Structure template renders the listing, the preview opens the listing instead of showing the individual item and its unsaved edits. Setting the channel’s Preview URL to news/detail/{url_title} does not change that routing.
Request
Give Structure Listing channels an opt-in setting to prefer the channel’s Preview URL in Live Preview. Apply it only when a Preview URL is configured. Preserve the existing default for channels whose Structure URI and template already render the intended preview.
The setting should affect preview routing only. Editors should see the entry they are editing, including unsaved changes, while the public URLs, templates, and Structure hierarchy stay as configured.
A custom extension can do this using the publish_live_preview_route hook. A setting in the control panel would make it possible without site-specific PHP.
Activity