[MAGNOLIA-1441] Using <cms:adminOnly> with <cms:mainBar> breaks the Preview mode Created: 02/Apr/07  Updated: 23/Apr/07  Resolved: 22/Apr/07

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 3.0.1
Fix Version/s: 3.0.1

Type: Bug Priority: Major
Reporter: zam6ak Assignee: Fabrizio Giustina
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia CE & EE 3.0.1
JBoss 4.0.5


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:

 Description   

One cannot use <cms:adminOnly> with <cms:mainBar> ?
If I do something like this and click on the preview button, the bar is lost (little square button with ">>")

<cms:adminOnly>
<cms:mainBar paragraph="page-properties" label="Page Properties" adminButtonVisible="true" />
</cms:adminOnly>

This is sometimes necessary to wrap mainBar into div tag without that div tag rendering in preview or public instance...Here is example:

<cms:adminOnly>
<div class="custom">
<cms:mainBar paragraph="np-www-page-properties" label="Page Properties" adminButtonVisible="true" />
</div>
</cms:adminOnly>



 Comments   
Comment by Fabrizio Giustina [ 22/Apr/07 ]

you can use the "showInPreview" attribute of the adminOnly tag if you want to show content also during preview.

Comment by zam6ak [ 23/Apr/07 ]

Yes, I know about "showInPreview"....
But I don't want the custom wrapper divs to show in preview.
Custom wrapper divs are only there to control the mainBar, when I switch to preview the mainBar is gone which is the same I want for the wrapper divs...

Comment by Magnolia International [ 23/Apr/07 ]

feel free to reopen and provide a patch if you want this to be fixed quickly

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