This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 28, 2011, 1:05 PM
2 Posts

Using a theme to set a dojoAttribute

  • Category: Styles and Themes
  • Platform: All
  • Release: 8.5.2
  • Role: Developer,Administrator
  • Tags: ckeditor
  • Replies: 3
In 8.5.2, it is fairly easy to set a dojoAttribute. The example commonly used is the toolbarType which can be set to Slim, for example. But what I want is to be able to set the attribute in a theme. The actual attribute I want to set is fontSize_sizes and I want to set it to 8pt;9pt;10pt;12pt;14pt;18pt;24pt;36pt so that users who are used to setting sizes in point sizes can do so.
 
When I set this manually for a specific rich text control, the generated html adds an attribute to the <textarea> tag, so that it looks like:
 
<textarea ...  fontSize_sizes="8pt;9pt;10pt;12pt;14pt;18pt;24pt;36pt">
 
Given this, I have tried a few variations on

    <control>
        <name>InputField.RichText</name>
        <property mode="override">
            <name>fontSize_sizes</name>
            <value>8pt;9pt;10pt;12pt;14pt;18pt;24pt;36pt</value>
        </property>
    </control>
 
or

    <control>
        <name>InputField.TextArea</name>
        <property mode="override">
            <name>fontSize_sizes</name>
            <value>8pt;9pt;10pt;12pt;14pt;18pt;24pt;36pt</value>
        </property>
    </control>
 
What would the correct syntax be?
Apr 29, 2011, 5:38 PM
122 Posts
Re: Using a theme to set a dojoAttribute
I read this before and couldn't see what was wrong, but I've just re-read the post after your blog and have a thought. With the theme we're setting XPages properties, not dojoAttributes. In this case, the initial property of InputField.RichText would be dojoAttributes. The problem is that property is a complex property, with children <xp:dojoAttribute>, each with a name and value property. I've tried a few variants to get it working, but no joy. But that might get you somewhere.
Apr 29, 2011, 6:07 PM
2 Posts
Re: Using a theme to set a dojoAttribute
So, perhaps using the "concat" setting somehow? I'll play with it more. If I can get this fixed, there are a bunch more potential settings that could be done via theme. Thanks for the idea, and if you have any more, I'd love to hear them.
Apr 30, 2011, 2:28 PM
2 Posts
Re: Using a theme to set a dojoAttribute
 Yes, themes are currently not handling complex types, which is an issue we are aware of.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal