Quantcast
Channel: SCN : Blog List - SAP Enterprise Portal
Viewing all articles
Browse latest Browse all 334

Tired of zipping / unzipping portal theme?

$
0
0

Dear all,

 

With the current theme editor you can change a lot of features in the portal. But you cannot change everything.

 

If you would like to change the look and feel of non-theme editor classes, you will need to edit property files. Please note: this is an 'expert' mode.

You can to this by zipping and unzipping the portal theme. It takes some time to unzip and zip the files, so I made a batch file for your convenience  (and mine ofcourse )

 

Downloading theme-

You can download your portal theme via System Administration > Transport > Transport Themes > Export Themes > yourtheme.

Screenshot - 6-8-2013 , 14_19_38.png

My theme is called dialogtest. I store the theme in a new folder, d:\Noel\theme\dialogtest.zip.

 

Screenshot - 6-8-2013 , 14_24_31.png

Normally you can unzip the theme, unzip the portal and ur zipfiles and start editing. After editing you will need to watch out if you are packing the right folders. This takes some time to clean up the zip file. I have made a batch file to unzip the portal theme. After this you can edit the properties files and pack it again to upload it in the portal finally.

 

Changes you will need for the batch files

     1) Change the winzip location to your location

     2) Change dialogtest into your portal theme zip name.

 

 

Batch file: unpack.bat - use it to unpack all files before editing

"C:\Program Files\WinZip\WINZIP32.EXE" -e dialogtest.zip dialogtest

cd dialogtest

"C:\Program Files\WinZip\WINZIP32.EXE" -e ur.zip ur

"C:\Program Files\WinZip\WINZIP32.EXE" -e portal.zip portal

del ur.zip

del portal.zip

 

 

Please note: only ur.zip and portal.zip are extracted too!

 

 

After unpacking, your folder structure should look like:

Screenshot - 6-8-2013 , 14_35_37.png

Make changes to the property files, images or whatever. Now you can zip the folders via the second batch file:

 

 

Batch file: pack.bat - use it AFTER you changed property files

NB. It renames your old theme into dialogtest_old.zip, just in case

@echo off

echo Packing portal theme into ZIP file

echo.

ren dialogtest.zip dialogtest_old.zip

cd dialogtest

"C:\Program Files\WinZip\WINZIP32.EXE" -m -r ur.zip ur\*.*

"C:\Program Files\WinZip\WINZIP32.EXE" -m -r portal.zip portal\*.*

"C:\Program Files\WinZip\WINZIP32.EXE" -m -r dialogtest.zip *.*

move dialogtest.zip ..

cd..

rd dialogtest

echo.

echo Done packing, you can upload it into the portal now.

echo.

 

Now your folder will look like:

Screenshot - 6-8-2013 , 14_49_21.png

 

Upload the dialogtest.zip into the portal:

 

Screenshot - 6-8-2013 , 14_48_35.png

 

That's all


Viewing all articles
Browse latest Browse all 334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>