cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Collection Renderer

Former Member
0 Kudos

Hi,

I have two issues:

1) To include an image in the html. What should the path be like?

Following does not work:

- http://webfrm2:50000/irj/servlet/prt/PartnerPortalHome/penny.gif

- http://webfrm2:50000/irj/servlet/prt/portal/prtroot/PPC/PartnerPortalHome/penny.gif

- http://webfrm2:50000/irj/servlet/prt/portal/prtroot/penny.gif

2) How do I remove the Folder name and its file listing at the bottom of the html page display?

Actually I could get rid of the file listing by removing ConsumerFileListRenderer from the "Layout Set". But I could not remove the Folder breadcrumb.

Any input is appreciated.

Regards,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thank you both for your responses.

To Victor's comment:

http://com.sap/PartnerPortalHome/penny.gif does not help render the gif. Folowing are my box's details: portal url is http://webfrm2:50000/irj and my gif is within repository: PPC within the folder PartnerPortalHome. So what would the src attribute of <img> tag be?

like <img src="penny.gif" width=320 height=240> does not work.

My Layout set does not have the breadcrumb collection in it.

To Fallon's comment:

KM Document iView comes pretty close. But I run into the following anomly. a.htm and penny.gif both recide within repository: PPC within the folder PartnerPortalHome.

When I click on a.htm and launch it, the gif embedded within the htm (<img src="penny.gif" width=320 height=240>) is rendered fine.

But if I create a KM Document iView on the a.htm, it does not render the gif.

Regards,

Kumar

Former Member
0 Kudos

Hello Kumar

We have HTML files being displayed using a KM Document iView. The HTML files do have embedded gif's that work correctly, but the gif isn't in the same folder as the HTML file (I don't know why that would mess things up, but it may...)

The .gif fileusing an example from one of our HTML filesis rendered with the following tag:

<img src="/irj/go/km/docs/documents/the full folder path within the documents repository/file_name.gif">

So if your gif is within the repository PPC (which would be found under root) and then in the folder PartnerPortalHome under that repository, your path should be:

<img src="/irj/go/km/docs/PPC/PartnerPortalHome/penny.gif">

Hope this helps!

Cheers,

Fallon

Answers (3)

Answers (3)

Former Member
0 Kudos

The complete resolution is the path suggested by Fallon, namely, <img src="/irj/go/km/docs/PPC/PartnerPortalHome/penny.gif">.

Thanks a bunch Sir. (btw I have awarded the pts).

Regards,

Kumar

Former Member
0 Kudos

Hello Kumar

One of the main purposes of an HTML Collection Renderer is to allow a customized header at the top of a list of KM Documents. If you don't want to list the contents of a KM folder and want only the HTML page displayed, you may want to consider simply using a URL iView or KM Document iView to display an HTML file within KM, instead of using an HTML Collection Renderer. Less configuration would be involved that way.

Cheers,

Fallon

Former Member
0 Kudos

If you store your images in KM and your RID for this document is: /PartnerPortalHome/penny.gif then the following should be used as the image URL: http://com.sap/PartnerPortalHome/penny.gif

To remove the breadcrumb, remove the breadcrumb collection renderer from the layoutset. Similar to how your removed the list collection renderer.