I am extending the Bootstrap theme in my applications. I want to include some css and js files via the theme.
I have tried putting the resources on the server in a folder. i have tried placing the resources in a "KendoUI" in the applications Web-Content folder. It appears that neither of these approaches work. When I open an Xpage in the application, it does not appear to have loaded anything.
If I put the resources directly in the Xpage I can see that the files are there (via Chrome).
Is there a mistake in my syntax in the theme?
As an aside, css files can added to the Resources under styles, and js can be added to script libraries under Code. We also can put resources in the WebContent folder using package explore. What is the different between these two places to put resources?
<!--
Use this pattern to include resources (such as style sheets
and JavaScript files that are used by this theme.
-->
<theme
extends="Bootstrap3.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">
<!-- Kendo Grid Resources Web Content-->
<resources>
<styleSheet href="KendoUI/styles/kendo.common.min.css"></styleSheet>
<script target="xsp" src="KendoUI/js/jquery.min.js" clientSide="true" type="text/x-javascript"/>
<script target="xsp" src="KendoUI/js/kendo.all.min.js" clientSide="true" type="text/x-javascript"/>
</resources>
<!-- Kendo Grid Resources File System-->
<resource>
<content-type>application/x-javascript</content-type>
<href>/.ibmxspres/domino/KendoUI/js/jquery.mim.js</href>
</resource>
<control>
<name>ViewPanel.Disable.Header.Footer</name>
<property
mode="override">
<name>viewStyle</name>
<value>width:99%</value>
</property>
<property>
<name>headerEndStyle</name>
<value>display: none;</value>
</property>
<property>
<name>headerStartStyle</name>
<value>display: none;</value>
</property>
<property>
<name>headerStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerStartStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerEndStyle</name>
<value>display: none;</value>
</property>
<property>
<name>viewStyleClass</name>
<value>xspDataTableViewPanel</value>
</property>
<property>
<name>dataTableStyleClass</name>
<value>xspDataTable</value>
</property>
<property>
<name>headerRowStyleClass</name>
<value>xspDataTableHeaderRow</value>
</property>
<property>
<name>bodyRowStyleClass</name>
<value>xspDataTableBodyRow</value>
</property>
<property>
<name>bodyCellStyleClass</name>
<value>xspDataTableBodyCell</value>
</property>
<property>
<name>unreadMarksClass</name>
<value>xspDataTableRowUnread</value>
</property>
<property>
<name>readMarksClass</name>
<value>xspDataTableRowRead</value>
</property>
<property>
<name>captionStyleClass</name>
<value>xspDataTableViewPanelCaption</value>
</property>
</control>
</theme>