Hey Guys,
In this post i would like to explain How to insert image in CDE Dashboard using pentaho 5.0.1 CE.
1)Add Image Functionlity
2)Using HTML Tag
3)Using CSS
Example:
1) Using Add Iamge Functionlity
Assuming that your image is located in Public -> mySolution -> images -> logo.png:
/pentaho/api/repos/:public:mySolution:images:logo.png/content
2) Now, Add HTML tag to a column and in the HTML code give the following, code which refers the location of your image is located in Public -> mySolution -> images -> logo.png:
CODE in HTML tag:
<div class="test">
<img src="../../../api/repos/public:mySolution:images:logo.png/content" />
or
<img src="/pentaho/api/repos/:public:mySolution:images:logo.png/content" />
</div>
3) Using CSS:
.test
{
background:url('/pentaho/api/repos/:public:mySolution:images:logo.png/content');
}
Hope this post helps someone and feel free to give comments and suggestion..
Sumit Bansal
BI Developer
"The beautiful thing about learning is nobody can take it away from you."
In this post i would like to explain How to insert image in CDE Dashboard using pentaho 5.0.1 CE.
1)Add Image Functionlity
2)Using HTML Tag
3)Using CSS
Example:
1) Using Add Iamge Functionlity
Assuming that your image is located in Public -> mySolution -> images -> logo.png:
/pentaho/api/repos/:public:mySolution:images:logo.png/content
2) Now, Add HTML tag to a column and in the HTML code give the following, code which refers the location of your image is located in Public -> mySolution -> images -> logo.png:
CODE in HTML tag:
<div class="test">
<img src="../../../api/repos/public:mySolution:images:logo.png/content" />
or
<img src="/pentaho/api/repos/:public:mySolution:images:logo.png/content" />
</div>
3) Using CSS:
.test
{
background:url('/pentaho/api/repos/:public:mySolution:images:logo.png/content');
}
Hope this post helps someone and feel free to give comments and suggestion..
Sumit Bansal
BI Developer
"The beautiful thing about learning is nobody can take it away from you."
No comments :
Post a Comment