Reputation: 1
How do I change the stylesheet in WebCenter Sites? I've read through Oracle's documentation and I'm still not sure where it would be located (the original developer left).
I have also begun working on converting other sites in our corporate portfolio and I'm not sure where to drop the CSS or JS files.
Any thoughts?
Upvotes: 0
Views: 268
Reputation: 1
You can create in WCS console administration:
Then you can create a new document where to upload your css
file. Just import that document in your html
.
Upvotes: 0
Reputation: 154
It depends of your configuration. For example, you can have an apache server and get css in apache directory. You have just to configure you're virtual host :
<VirtualHost *:80>
<Location /cs>
SetHandler weblogic-handler
WebLogicHost 192.168.3.1
WebLogicPort 7003
</Location>
RewriteEngine on
RewriteRule ^/css/(.*)$ /css/$1 [L,PT]
RewriteRule ^/cs/(.*)$ /cs/$1 [L,PT]
RewriteRule ^/(.*)$ /cs/{sitecode}/$1 [L,PT]
</VirtualHost>
Upvotes: 0
Reputation: 441
You can put the folder including css files, js files and img inside cs folder. And in your template, to reference your static files, you should start with the name of the folder including the statics.
Based on folder structure in the image, we will reference our css file using
<link rel="stylesheet" type="text/css" href="/statics/css/style.css">
Upvotes: 0