Tags:
create new tag
view all tags

SID-02230: How can I set image to box title

Status: Answered 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 frown

-- 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:

Hello world
Box body

-- Peter Thoeny - 2016-07-21

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title How can I set image to box title
SupportCategory TWikiDashboardAddOn
TWiki version 6.0.2
Server OS Linux osmc 4.4.13-5
Web server Apache/2.4.10 (Debian)
Perl version v5.20.2
Browser & version Mozilla 47
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2016-07-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.