Skip to content

Let Structure Listing channels use their configured Live Preview URL #5490

Backlog

Description

@robinsowell

Current behavior

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions