Show images of workitem richt-text fields in wiki

Description
saw
Posts: 1
Joined: Mon Sep 19, 2011 4:53 pm

Show images of workitem richt-text fields in wiki

Postby saw » Mon Sep 19, 2011 5:24 pm

Hello,

the workitem description field includes an image and I'd like to show the description with the image in a wiki page.
The current code is:
$wi.getDescription().getContent()

The text is fine, but the images is not included (shows a broken link with address: workitemimg:1-Image1.jpg)
How can I show images in richt-text fields in the wiki?
The wiki macros are no option, as I want a different layout.

Zwi_B&R
Posts: 12
Joined: Fri Nov 19, 2010 9:35 am
Location: Austria
Contact:

Re: Show images of workitem richt-text fields in wiki

Postby Zwi_B&R » Mon Sep 26, 2011 10:31 am

Hi!

I have the same problem, but couldn't find a solution up to now.
My workaround is to use the Polarion macro like this: {workitem:$wi.id|fields=description}
But it makes a header and a box around the content - which I'd like to get get rid of.

hsack
Posts: 3
Joined: Mon Oct 10, 2011 2:09 pm

Re: Show images of workitem richt-text fields in wiki

Postby hsack » Wed Oct 12, 2011 1:13 pm

Hi,
try using:
$wi.transformDescriptionForUI($wi.description).getContent()

This renderes the description, but does not work always :-(
Sometimes text entered after images in the description gets lost ...


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: Google [Bot], kayeyz16, sofiavp2 and 29 guests