cancel
Showing results for 
Search instead for 
Did you mean: 

Anonymous Portal ... Problem accessing images, css, js

Former Member
0 Kudos

Hi, i'm trying to build a web site to be accesed from internet and i'm having some trouble with some specific points (i'm new with SAP). I've seen many questions like this in the forums but none are finally answered.

I setup the anonymous portal based on SAP Instructions (help.sap), i'm using the Guest user to the anonymous users and i can access without login throught this adress http://localhost:50000/irj/portal/anonymous.

<b>First Question</b>

When i create a html using the html editor from the KM it work fine, i can see the page with the styles i used; but when i inssert an image uploaded, the page start to ask for authentication and don't show the image, if i enter a valid user and password it shows the image correctly. I tryed assinging permissions to the Guest user over the image and it doesn't work. As you know as i'm trying to make a Web Site to run on the Internet and it cannot ask the users of the portal to authenticate, this is my first question, how can i setup the portal to not ask authentication for this image? if i access the image directly also ask for authentication and shows an unauthorized page, i tryed this two links: http://localhost:50000/irj/go/km/docs/documents/abc_htmlfiles/images/0186.jpg

http://localhost:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/abc_htmlfiles/ima...

<b>Second Question</b>

Locally i create a html and i upload it through the KM, i used separate .css file (style sheet file) and .js file (javascript file) to make some effects but when i load the html to the KM Document Iview it shows only the text and doesn't recognize the files with the styles or the javascript; i have the html over the abc_htmlfiles directory (my test directory) and the css files on the css directory, look this is the directory structure on KM:

/root/documents/abc_htmlfiles/page0.html

/root/documents/abc_htmlfiles/css/styles0.css

/root/documents/abc_htmlfiles/js/script0.js

from the html i've tried to access the .css and .js like this:


<LINK rel="stylesheet" href="css/styles0.css" type="text/css"/>
<SCRIPT src="js/script0.js" type="text/javascript"></SCRIPT>

What is the path to access this kind of resources?

<b>Third Question</b>

Now i just can create html content in the web site, but i don't know how to create a navegation menu, a menu which show me the different sections and iviews, do you have a link where i can get a step by step to create a menu like this?

I really appreciate answers to my questions and think that i can assign some points (if you explain me how) to the people who help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manuel,

<b>Second Question

What is the path to access this kind of resources?</b>

--> click on the css file and then copy the path from <b>/irj</b>. then try giving this path.

<b>but i don't know how to create a navegation menu</b>

-> Are you referring to the detailed level navigation or top level navigation.refer the following link, probably that will help you.

http://help.sap.com/saphelp_nw2004s/helpdata/en/5a/33befa45ca7f459b24d0c5d51d0749/frameset.htm

Regards

Rajeev.

Former Member
0 Kudos

thanks Rajeev, the second question work the way you said, but i still have the problem of the first question, in the anonymous portal it ask me authentication for each of the images, css and js files. How can i avoid that authentication due the portal is for internet and the users don't need to authenticate to see the content i want to show them.

Answers (3)

Answers (3)

Former Member
0 Kudos

First Question

I solved my problem following the SAP Note 837898, I am using the NW04 SP16 - Enterprise Portal 6.0.

The problems as i understood is that SAP Portal uses WebDav authentication throught the default access /irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/, to avoid that authentication when using anonymous you have to config the portal to allow this path to access the documents in KM /irj/go/km/docs/. The way you config the portal is described step by step in the <b>Note 837898</b> .. I followed all the steps (including the ones who modifies the Standard User Role iviews in Portal Content) and finally i restarted the Portal.

It works for me and my SAP EP version.

Second Question

The 2nd Question was solved the way one of the posters said in this thread, but to anonymous portals after config the Note 837898 you should use the path <b>/irj/go/km/docs/</b> to avoid the authentication window which prompts for the user and password.


<LINK REL=stylesheet href="https://answers.sap.com/irj/go/km/docs/documents/abc_htmlfiles/css/styles0.css">
<SCRIPT src="/irj/go/km/docs/documents/abc_htmlfiles/js/scripts0.js" type="text/javascript"></SCRIPT>

Third Question

The menus in SAP portal are made with Roles and assigned to the groups that are going to have access to the options of the menus .. it's quite simple following the links suggested in the answers already posted in this thread.

Former Member
0 Kudos

Hi,

Has anybody ever solved this problem with folowing the SAP Notes.

If yes please share the experience.

Regards,

Mladen

Former Member
0 Kudos

Hi Manuel,

I have the same problem: FIRST QUESTION.

There are some SAP Notes about changes that have to be made for presenting KM content in anonymous access:

Note 728106 - is an older version, is not available any more (I could not find it)

Note 837898 - is available, but I have made the changes described there and it still does not work.

So I can't see images, CSS when I'm trying to access in anonymous mode.

So try it maybe you will have more luck. And if you find the solution, post it here please.

Regards,

Mladen

P.S. Note 837898: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_km/~f...