[MAGNOLIA-2419] cms:publicOnly 's showInPreview is false by default - documentation is wrong. Created: 08/Oct/08  Updated: 23/Jan/13  Resolved: 10/Oct/08

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

Type: Bug Priority: Major
Reporter: Olivier Marti Assignee: Magnolia International
Resolution: Fixed 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:

 Description   

The cms:publicOnly Tag should also show it's content in the preview mode or if there should be scenarios where this should be avoided have a switch where this can be defined.



 Comments   
Comment by Magnolia International [ 08/Oct/08 ]

According to the doc, it should already be the case. <cms:publicOnly showInPreview="true"> should do what you want, and that attribute is true by default, so you shouldn't even to set it.

Can you provide a sample template / environment where we can see the issue ?

http://dev.magnolia.info/ref/latest-stable/magnolia-taglib-cms/tagreference.html#cms:publicOnly

Comment by Olivier Marti [ 10/Oct/08 ]

Tested it with several templates now, the switch showInPreview="true" is not default, it has to actually be set that it is working in Preview Mode.

Comment by Magnolia International [ 10/Oct/08 ]

you're right, it's indeed false by default. fixing documentation.

Comment by Magnolia International [ 10/Oct/08 ]

thanks, javadoc and tld fixed in svn, trunk and 3.6 and 3.5 branches.
(published docs are generated.. feel free to provide a patch to fix them, i'll apply it)

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