[MAGNOLIA-3746] Inbox page preview (with GET parameter mgnlVersion=) renders the page in wrong mode. Created: 29/Jun/11  Updated: 04/Aug/15  Resolved: 04/Aug/15

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 4.4.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Stefan Baur Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Visible to:
Raphael Joss

 Description   

If page is rendered with the mgnlVersion= GET parameter, alls edit bars are hidden and the page looks like in preview mode. You reach this state by clicking "Show Content" in the inbox.

The page looks like in preview mode (because all green bars are hidden), but all freemarker code inside of

 [#if mgnl.editMode]

statements is executed all the same.

This causes some rendering problems, and displays hints like in

formGroupEdit.ftl, Line 10
[#if mgnl.editMode]
        ${i18n['form.note.field']}
[/#if]

to be displayed, even though the user doesnt seem to be in the edit mode.

It seems to me, that the aggregationState returns a wrong value here:
info.magnolia.cms.core.AggregationState#isPreviewMode



 Comments   
Comment by Stefan Baur [ 06/Jul/11 ]

ping

Comment by Raphael Joss [ 16/Aug/11 ]

Could you please give us an update on this ticket?
Thanks.

Comment by Michael Mühlebach [ 04/Aug/15 ]

We're closing this issue as outdated as it was reported for 4.4.x or earlier versions which are no longer supported. Don't hesitate to reopen or create a new ticket in case this is still relevant and you'll experience it on 4.5.x or later versions.

Generated at Mon Feb 12 03:49:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.