Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Removed setting the InPreviewMode flag #127

Merged
merged 3 commits into from
Jan 14, 2019
Merged

Conversation

leekelleher
Copy link
Collaborator

@leekelleher leekelleher commented Jan 11, 2019

The change we introduced from #117 to trick Umbraco in thinking that it
was in full preview mode has had some bad side-effects, see issues #123,
#124 and #125 for further details.

This change removes us manually setting the InPreviewMode property,
and brings back the querystring param "dtgePreview", so a
developer can detect whether its rendering in DTGE's preview mode or
not.

I'm unsure how this change will impact #117, there is an extra level of
complexity when attempting cross-package-compatibility, (in this case
Vorto).

The change we introduced from #117 to trick Umbraco in thinking that it
was in full preview mode has had some bad side-effects, see issues #123,
#124 and #125 for further details.

This change removes us manually setting the `InPreviewMode` property,
and adds "`dtgePreview`" to the partial-view's `ViewData`, so a
developer can detect whether its rendering in DTGE's preview mode or
not.

I'm unsure how this change will impact #117, there is an extra level of
complexity when attempting cross-package-compatibility, (in this case
Vorto).
for the sake of back-compatibility.
Reverted back to using the querystring exclusively.
@leekelleher
Copy link
Collaborator Author

Follow up with #117, turns out that the InPreviewMode flag didn't fix the Vorto issue anyway. So I'm less concern by this PR now. Merging in.

@leekelleher leekelleher merged commit d9d11f2 into develop Jan 14, 2019
@leekelleher leekelleher deleted the patch/preview-fixes-1 branch January 14, 2019 11:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant