简体   繁体   中英

How can I set application layout properties in a theme?

I understand how to set properties like style and styleClass using a theme but how do I set a property such as productLogo in my theme?

I tried

<control>
    <name>ApplicationLayout</name>
    <property>
        <name>configuration.oneuiApplication.productLogo</name>
        <value>"/LogoSmall.JPG"</value>
    </property>
</control>

and

<control>
    <name>ApplicationLayout</name>
    <property>
        <name>configuration.productLogo</name>
        <value>"/LogoSmall.JPG"</value>
    </property>
</control>





<control>
    <name>ApplicationLayout</name>
    <property>
        <name>productLogo</name>
        <value>"/LogoSmall.JPG"</value>
    </property>
</control>

but none seemed to work.

Can this be done? If so how?

First of all you need to determine the themeID of the component. Tim Tripcony has wrote a blog about how to do this, see http://xmage.gbs.com/blog.nsf/d6plinks/TTRY-8RXAQ6 When you know the theme id you can use in your own theme

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM