Issue Details (XML | Word | Printable)

Key: SCAFF-55
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Guy Fraser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

Extensions to "hidden data"

Created: 11/Apr/06 06:18 PM   Updated: 29/Sep/06 05:32 AM
Component/s: {hidden-data}
Affects Version/s: None
Fix Version/s: Turquoise

Time Tracking:
Not Specified


 Description  « Hide
It would be cool if hidden data could have modes depending on what state the template is in, eg:
  • show/hide content if in edit mode
  • show/hide content if in view mode
  • show/hide content if in preview (or end-user view) mode

This is particularly useful as certain macros only work in the preview or end-user (non-editable) view of scaffolds - eg. macros which have forms in them will only work when not wrapped in the outer scaffold form that's present in editable / editor-view modes.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 12/Apr/06 02:04 AM
This sounds more like something that the Visibility Macros could handle. {hidden-data} is really a bit of a hack which I'm not really happy with, but does a basic job. Visibility does (or is supposed to do) some of that already. Detecting whether a macro is executing in edit/preview/view mode can be tricky though...