SES Logo Changes
Templates
Create Directories
/<STAGE>
scratch /
skins /
templates /
assets /
css
images
js
Stage Files
1. Copy required image to u01/prd/nflin673/....//assets/images
2. Copy the following template that need changes from
/u01/prd/nflin673/app/oracle/product/ses_1/seshome/search/data/queryapp/support/11_1_2_0_0/templates/ to to the /u01/prd/nflin673/....../templates
In this case we copied the following files
o inc_logo_querybox.ftl
o query.ftl
Modify the templates
Make the following Changes to inc_logo_querybox.ftl
Change this line
<td headers="" rowspan="2"><@ses.oracle_logo size="small" href="${logoHref}"/> </td>
to
<td headers="" rowspan="2"><img src="<@ses.skin_asset filename='imagesnew.jpg'/>"> </td>
NOTE: One Line
Change the following line in query.ftl
<@ses.oracle_logo size="large" href="${logoHref}"/>
To
<td headers="" rowspan="2"><img src="<@ses.skin_asset filename='images/newerjpg'/>"> </td>
NOTE: One Line
Create Loader Files
1. Cd to the scratch/skins directory
2. Create the following files
3. FILE.xml
<search:config productVersion="11.1.2.0.0" xmlns:search="http://xmlns.oracle.com/search">
<search:skinBundles>
<search:skinBundle>
<search:name><SEARCH_NAME></search:name>
<search:isDefault>true</search:isDefault>
<search:linkedVersion>11.1.2.0.0</search:linkedVersion>
<search:files>
<search:file path="templates/inc_logo_querybox.ftl"/>
<search:file path="assets/images/new.jpg"/>
<search:file path="assets/images/newer.jpg"/>
<search:file path="templates/query.ftl"/>
</search:files>
</search:skinBundle>
</search:skinBundles>
</search:config>
Create DFW1.lst
assets/…../new.jpg::/u01……. /assets/images/newer.jpg
assets/images/newerjpg::/ /…../assets/images/new.jpg
templates/inc_logo_querybox.ftl:://u01/prd…… /templates/inc_logo_querybox.ftl
templates/query.ftl:://u01/prd/......../....../templates/query.ftl
Load Templates
1.) $ searchadmin
Search Admin Command Line - Release 11.1.2.0.0
Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
Password:
SES>
SES> delete skinBundle --NAME=NAME
The object "[name=<SEARCH_NAME>]" was successfully deleted.
SES>create skinBundle --NAME=NAME --INPUT_FILE=NAME.xml --ATTACHMENT_LIST=NAME.lst\
The object "[name=DFW1]" was successfully created.
SES>activate skinBundle --NAME=NAME
The object "[name=NAME]" was successfully activated.
exit searchadmin
$ searchctl restart
No comments:
Post a Comment