SID-02230: How can I set image to box title
| Status: |
Answered |
TWiki version: |
6.0.2 |
Perl version: |
v5.20.2 |
| Category: |
TWikiDashboardAddOn |
Server OS: |
Linux osmc 4.4.13-5 |
Last update: |
9 years ago |
How can i set any .jpg .png .etc to a title of boxes, I try this -
%DASHBOARD{ section="box_start"
title="<img alt="" height="30" src="https://fazarsusanto.files.wordpress.com/2013/10/clip_image0013.png" width="224" />"
contentstyle="overflow: hidden;"
}%
but without success
--
Teodor Ivanov - 2016-07-20
Discussion and Answer
The
title="" parameter value is enclosed in double quotes. Use single quotes for your image, such as:
%DASHBOARD{ section="dashboard_start" }%
%DASHBOARD{ section="box_start"
title="<img src='%ICONURLPATH{globe}%' width='16' height='16' alt='' /> Hello world"
}%
Box body
%DASHBOARD{ section="box_end" }%
%DASHBOARD{ section="dashboard_end" }%
Test:
--
Peter Thoeny - 2016-07-21
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.