History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SCAFF-91
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: David Peterson
Votes: 1
Watchers: 1
Operations

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

Create an 'alternate-data' macro

Created: 20/Dec/06 06:18 AM   Updated: 19/Sep/07 09:55 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Turquoise

Time Tracking:
Not Specified


 Description  « Hide
It would be neat if you could specify several alternate blocks of data, selectable from a drop-down box. Eg:
{alternate-data:Media Type}

{alternate-body:Audio CD}
*Type:* Audio CD
*Artist:* {text-data:Artist}
*Record Label:* {text-data:Production Company}
{alternate-body}

{alternate-body:DVD}
*Type:* DVD
*Director:* {text-data:Director}
*Production Company:* {text-data:Production Company}
{alternate-body}

{alternate-data}

This would be displayed section with a drop-down box. Each {alternate-body} is listed as an option (eg. 'Audio CD', 'DVD'). When one is selected, the rendered body is revealed to the user. The contents may be anything. The alternate date is not a group; that is, any contents of the body will not be in (for example) the 'Media Type' group - it will be at the same level as everything outside the alternate data. The option selected will be saved as a text field with the name of the alternate-data field (in the example, a text field called 'Media Type' will be saved as either 'Audio CD' or 'DVD').

Note also, that the data contents contained within can have either different fields in each alternative (eg 'Artist', 'Director') or the same (eg. 'Production Company'), depending on what makes sense for the options. The advantage of using the same fields is they will both store to the same location.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Hendrik Vermeiren - 13/Sep/07 12:51 PM
Maybe this development can be combined with functionallity of filtering list-options based on other scaffolding data (lists)

Example:

List 1: gender

  • Wife
  • Man

List 2 (based on List 1, selected item 'Wife')

  • Shirley
  • Kimberley
  • Kelly

List 2 (based on List 1, selected item 'Man')

  • Wesley
  • Kenji

Keep up the good work !


David Peterson - 13/Sep/07 03:21 PM
Hi Hendrik,

To achieve what you're after with the above macro, it would look like this:

*Gender:* {alternate-data:Gender}

{alternate-body:Wife}
*Name:* {list-data:Name}
{list-option}Shirley{list-option}
{list-option}Kimperley{list-option}
{list-option}Kelly{list-option}
{list-data}

{alternate-body}

{alternate-body:Man}
*Name:* {list-data:Name}
{list-option}Wesley{list-option}
{list-option}Kenji{list-option}
{list-data}
{alternate-body}

{alternate-data}

Hendrik Vermeiren - 19/Sep/07 08:37 AM
Dear David,

Any idea when you plan this feature to be implemented? We have many many situations where we should apply this feature.

Great work & thanks in advance!

Hendrik


David Peterson - 19/Sep/07 09:55 AM
No ETA at this point in time - I have a few other projects on my schedule, and resolving the problems with Internet Explorer are highest on the priority list for Scaffolding when and if I get time...