http://127.0.0.1:8080/share/page/components/dashlets/my-dashlet
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
http://127.0.0.1:8080/share/res/components/dashlets/my-dashlet.css
<webscript>
<shortname>My Dashlet</shortname>
<description>Example dashlet</description>
<family>user-dashlet</family>
<url>/components/dashlets/my-dashlet</url>
</webscript>
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
<@markup id="html">
<@uniqueIdDiv>
<div class="dashlet my-class">
<div class="title">${msg("header.title")}</div>
<div class="body">${msg("text.hello")}</div>
</div>
<div class="blogs-greeting-io">${url.context}</div>
</@>
</@>
header.title=My dashlet
text.hello=Hello world !!
.title {color:orange;}
.blogs-greeting-io {
padding: 10px;
color: orange;
font-weight: bold;
}
<div id="my-dashlet">Prova!</div>
#my-dashlet { color: red; }
.<div class="my-title">…
oppure inserire la direttiva !important dopo la proprietà che vuoi modificare (color: red !important
).
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
<@markup id="html">
<@uniqueIdDiv>
<div class="dashlet my-class">
<div class="title">${msg("header.title")}</div>
<div class="body">${msg("text.hello")}</div>
</div>
<div class="blogs-greeting-io">${url.context}</div>
<div id="my-dashlet-pippo">Prova!</div>
</@>
</@>
.title {color:orange !important;}
.blogs-greeting-io {
padding: 10px;
color: orange;
font-weight: bold;
}
#my-dashlet-pippo { color: red; }
You can even access the component directly, by going to http://localhost:8080/share/components/dashlets/my-dashlet – you would only get the component (dashlet), not the whole page.
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.