cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to download CSS file to portal

Former Member
0 Kudos

Hello

I have problem in edition of some values by Theme editor so I'd like to edit them direct in CSS files ( mainly colors) and then to upload it again to custom theme.

So I made some correction in CSS files and then tried to upload them back.

I copied all files from ZIP with CSS with some modified files to file without CSS - doesn't work. I get an error - time out

Then I tried to add only modified files, but I created also a missing directory ls. There is a progress, no error, but only warning that something went wrong and I should look at log - I was looking but couldn't find any helpful hints. I tried to download zip file to check if my changes were done but values are still unchanged.

Does any one could describe me how to upload modified CSS files? And does changes in CSS files are visible immediately after successful uploading or the the server need to be restarted?

Any help???:-)

Iwona

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Iwona,

in your case it's highly recommended to use theme designer tool, then you can change the css files directly by the tool,

for more details about theme designer you can see following links:

https://help.sap.com/saphelp_nw73/helpdata/en/22/7b3a3a4b814c4d8e9cf52a99cf6240/content.htm

http://help.sap.com/saphelp_nw73ehp1/helpdata/en/8e/a763272dcd4b4ba6ea347050b1f3fc/content.htm

http://scn.sap.com/community/enterprise-portal/blog/2014/09/11/using-ui-theme-designer-in-sap-enterp...

Regards,

Mahmoud

Former Member
0 Kudos

Hello Guys

Maybe I describe how I find object to modification. I downloaded files from server from the directory you suggested. I opened portal in Firefox, I clicked on developement tools, highlighted object that has a wrong color or font size, and checked witch attribute I have to change , e.g. I had an object name .urPWSeperator and .urPWInnerBorder for popup message and names of attributes -   border-color and   background-color. Then I was searching these names of objects in all CSS files:
CSS\ur\ls\ls_ie6.css
CSS\ur\ls\ls_ie6.marked.css
CSS\ur\ls\ls_ie6.nosprite.css
CSS\ur\ls\ls_standard.css
CSS\ur\ls\ls_standard.marked.css
CSS\ur\ls\ls_standard.nosprite.css
CSS\ur\ls\ls_standards.css
CSS\ur\ls\ls_standards.marked.css
CSS\ur\ls\ls_standards.nosprite.css
I changeed values for colors and then I copy it back to the server. Restart a server and...nothing.

I was also investigated .properties files and it looks thet there are some name of objects but they differ from names of the object that I can identify through Firebug.
No successes!
Any suggestion?
Iwona

Former Member
0 Kudos

Hi  anybody got a solution for same. I have the exact similar problem.

nol_hendrikx
Active Contributor
0 Kudos

Hi Iwona,

These 3 blogs may help you further:

- new UI Theme Designer

For the old Theme editor you can use two files to search for the definition: ls.designpart and ur.designpart. There should be a reference to the properties files also. Don't modify the css file itself, it is being generated while uploaded

Former Member
0 Kudos

Hi Noel

I was looking for those files in downloaded archives using both methods - 

System Administration - Transport - Transport Themes and

Content Administration - Portal Display - Download Theme Type

but I don't see those files. Can you please tell me the path, where can I find this files?

Best wishes

Iwona

nol_hendrikx
Active Contributor
0 Kudos

Search for the following two files on the portals filesystem:


com.sap.portal.design.urdesigndata

com.sap.portal.design.lsdesigndata

I am not sure about the last one to be honest, I don't have access to the filesystem now.

UR - Unified Rendering

LS - Lightspeed Rendering

Cheers,

Noel

former_member182650
Contributor
0 Kudos

Hi Iwona,

You could:

1. Download Theme on Teme Transport section.

2. Modify zip contents (CSS, images, etc)

3. Upload again into Transports section

Cheers

Former Member
0 Kudos

Hi Angel

Thanks for your quick replay but I was trying to do more or less like you wrote but with no success. So maybe I will describe all steps and please correct me if am wrong.

1. Download Theme on Teme Transport section.

There are two ways to download files from portal. One way: System Administration - Transport - Transport Themes - this way you don't have important CSS files. To have files with all CSS you can go Content Administration - Portal Display - Download Theme Type. Here you download three zip files: portal, ur and its. Inside them I can find all CSS files where I can make modification.

2. Modify zip contents (CSS, images, etc)

I found a name of object and then I made changes in all CSS files.

3. Upload again into Transports section

I assume that you wrote about System Administration - Transport - Transport Themes. I was trying to upload theme_name.zip. As this files doesn't contains all CSS files instead of original files portal.zip ur.zip and its.zip I attached whole archives downloaded by Download Theme Type. It took a long time and in the end I got an error. The file is too long?

Then I tried to add only modified CSS files and missing directories but I got a warning and it didn't work neither.

In this case can you please describe more detailed this step. Or maybe I am doing something wrong earlier.

Thanks for you help

Iwona

former_member182650
Contributor
0 Kudos

The modified Zip file that you upload must have the same internal structure and all files. Open it after you rezip again and compare to original file. May be there is some difference.

Former Member
0 Kudos

Hi Andreas

It is still not working. The problem is that the structure of files differs:

In theme_name.zip the structure is as in the attachment theme_name. The structure of zipped file that I can download is different - as you can see attachment ur.zip. So how should I combine them into one file theme_name.zip. Which structure is correct?

BTW This 7.3 version and maybe it is different than earlier?

I have any ideas how to deal with it

Best wishes

Iwona

former_member182650
Contributor
0 Kudos

Hi Iwona,

Original file structure is the correct one. You must update files in this ZIP without modify folders, filenames, etc.

Kind regards

Former Member
0 Kudos

Hi Angel

Sorry that I changed your name.

As I understand the correct structure of the imported file is theme_name.zip file, but

it doesn't contains any CSS files. File like e.g. ls_ie5.css (where I can change attributes for object e.g. urPWInnerBorder) is in another archive downloaded from Content Administration - Portal Display - Download Theme Type - zipped file.

When should I copy this CSS file to theme_name.zip. To which directory?

It sounds very easy but it doesn't work.

Iwona

Former Member
0 Kudos

Hi Iwona,

Don't modify CSS files.

Download theme from System admin - Transport - Transport themes

and modify *.properites files as per your need.

Zip it back together and upload on portal.

Afterwards you might need to open this theme in Theme editor and press SAVE to regenerate theme content.

Former Member
0 Kudos

Hi Artur

I see that you have another vision but I would need more information.

Downloading is easy so let's go to the next step.

I want to set a background-color: #1A5325 for the object .urPWInnerBorder. In *.properties files I don't see any entries with this object. So how should I proceed? In this archive there are 16 files of this kind and inside I don't see anything that looks like object's name.

I am really confused.

Best wishes

Iwona

Former Member
0 Kudos

Hi Iwona,

The reason why I asked you to work with *.properties files is that I have a feeling that SAP Portal treats these files as a theme source code, from which all CSS files are generated. But... this is just a gut feeling.

Anyway - you asked a tough question : ) In default.properties I only see border color parameters for that object. Nothing that would look like background color.

Can you maybe try adding property such as parPWInnerBorderBackground or parPWInnerBorderBackgroundColor to default.properties file ?

Alternatively you might try editing css files directly on the Application Server under following path:

\usr\sap\SID\JXX\j2ee\cluster\apps\sap.com\com.sap.portal.design.urdesigndata\servlet_jsp\com.sap.portal.design.urdesigndata\root\themes\portal\

or

\usr\sap\SID\JXX\j2ee\cluster\apps\sap.com\com.sap.portal.design.portaldesigndata\servlet_jsp\com.sap.portal.design.portaldesigndata\root\themes\portal\

?

Instance restart might be needed afterwards.

former_member182650
Contributor
0 Kudos

Is it possible you are trying to modify an ITS or other kind of theme? Witch content do you want to modify?