Issue Details (XML | Word | Printable)

Key: XWIKI-2967
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan M
Reporter: Vincent Massol
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Add ability to display an optional image and a optional title in the Box macro

Created: 09/Dec/08 12:21   Updated: 18/Mar/09 22:04
Component/s: Rendering 2.0
Affects Version/s: 1.7 RC1
Fix Version/s: 1.8 M2

File Attachments: 1. Text File XWIKI-2967-1.patch (13 kB)
2. Text File XWIKI-2967-2.1.patch (2 kB)
3. Text File XWIKI-2967-2.patch (12 kB)

Issue Links:
Dependency
 
Duplicate
 

Date of First Response: 05/Jan/09 23:28
Resolution Date: 22/Jan/09 11:17
Tests: Unit


 Description  « Hide
This would allow reimplementing the #info, #warning, #error macros using the box macro + the ability to display one's avatar next to some text when we want to put comments inside a page.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Dan M added a comment - 05/Jan/09 23:28
Added an optional title which supports Wiki syntax and an optional image, as proposed on the mailing lists.

Thomas Mortagne added a comment - 20/Jan/09 16:56
Why xwiki-core-bridge is added to box macro dependencies ? I don't see it used anywhere.

Dan M added a comment - 21/Jan/09 12:38
Done, removed that. It was just a leftover.

Thomas Mortagne added a comment - 22/Jan/09 11:17
Applied patch from Dan Miron without any change

Thanks


Thomas Mortagne added a comment - 22/Jan/09 11:20
Dan could you update the documentation at http://code.xwiki.org/xwiki/bin/view/Macros/BoxMacro with the new features ?

Thomas Mortagne added a comment - 22/Jan/09 11:23
And also http://code.xwiki.org/xwiki/bin/view/Macros/CodeMacro20 since it's based on box macro.

Dan M added a comment - 02/Feb/09 13:59
Made the code macro to use both the 'box' and 'code' css stylesheets, instead of just 'code'.

Thomas Mortagne added a comment - 02/Feb/09 14:07
Why do you need the if (StringUtils.isEmpty(this.getCssClass())) { ? Since you are in the constructor you now the value. The loading of the macro parameters by beanutil is done on an object so after the constructor is called.

Thomas Mortagne added a comment - 02/Feb/09 14:21
Apply patch for Dan without the if