Preview Entries in the CP that Aren't Available Publicly #11376
-
Does anyone have a solution for how I can preview an entry within the control panel for content that I never want to be viewable directly from a public url? I have a section of entries that are effectively individual building blocks for a page. I would like the ability to preview the individual entries in the control panel but only allow them to be viewed outside of the control panel if they are represented as a "block" within a page. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Found some old stuff that should work for that (at least as a starting point...) Set up a preview target with a URL format like The template can now check whether it is in preview mode and retrieve the entry:
/Mel |
Beta Was this translation helpful? Give feedback.
Found some old stuff that should work for that (at least as a starting point...)
Set up a preview target with a URL format like
/internal/sections/pageblock?id={id}
The template can now check whether it is in preview mode and retrieve the entry:
/Mel