You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2017/11/03 17:19:43 UTC
svn commit: r1814228 - in /ofbiz: ofbiz-framework/trunk/themes/README.md
tools/wiki-files/themes/README.md.html
Author: jleroux
Date: Fri Nov 3 17:19:43 2017
New Revision: 1814228
URL: http://svn.apache.org/viewvc?rev=1814228&view=rev
Log:
Better formatting
Modified:
ofbiz/ofbiz-framework/trunk/themes/README.md
ofbiz/tools/wiki-files/themes/README.md.html
Modified: ofbiz/ofbiz-framework/trunk/themes/README.md
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/README.md?rev=1814228&r1=1814227&r2=1814228&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/themes/README.md (original)
+++ ofbiz/ofbiz-framework/trunk/themes/README.md Fri Nov 3 17:19:43 2017
@@ -135,6 +135,7 @@ Currently it keeps all old themes system
As a theme is a component, you can create a new theme like a plugin.
After creating a component, you can add the two minimal information :
+
* Theme.xml file in **plugins/my-theme/widget/** with minimal information :
```xml
<theme name="my-theme"
@@ -145,6 +146,8 @@ After creating a component, you can add
</visual-themes>
</theme>
```
+
+
* your data file to add your visual theme in **plugins/my-theme/data/**
```xml
<entity-engine-xml>
Modified: ofbiz/tools/wiki-files/themes/README.md.html
URL: http://svn.apache.org/viewvc/ofbiz/tools/wiki-files/themes/README.md.html?rev=1814228&r1=1814227&r2=1814228&view=diff
==============================================================================
--- ofbiz/tools/wiki-files/themes/README.md.html (original)
+++ ofbiz/tools/wiki-files/themes/README.md.html Fri Nov 3 17:19:43 2017
@@ -141,15 +141,16 @@ under the License.
<p>Screens are separated in three types : * structural-decorator : contains all decorators that organise the screens structures * embed-decorator : decorator used only on sub screens * general-screen : list all generic inter applications screens # The common-theme This is the root theme that contains all information to ensure a good basic theme for OFBiz. Currently it keeps all old themes system for backward compatibility with ftl template managed by the entity <strong>VisualThemeResource</strong></p>
<h1 id="create-your-own-theme">Create your own theme</h1>
<p>As a theme is a component, you can create a new theme like a plugin.</p>
-<p>After creating a component, you can add the two minimal information : * Theme.xml file in <strong>plugins/my-theme/widget/</strong> with minimal information :</p>
-<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><theme</span><span class="ot"> name=</span><span class="st">"my-theme"</span>
-<span class="ot"> xmlns:xsi=</span><span class="st">"http://www.w3.org/2001/XMLSchema-instance"</span>
-<span class="ot"> xsi:noNamespaceSchemaLocation=</span><span class="st">"http://ofbiz.apache.org/dtds/widget-theme.xsd"</span><span class="kw">></span>
- <span class="kw"><visual-themes></span>
- <span class="kw"><visual-theme</span><span class="ot"> id=</span><span class="st">"MY_THEME"</span><span class="ot"> display-name=</span><span class="st">"My Theme"</span><span class="kw">/></span>
- <span class="kw"></visual-themes></span>
-<span class="kw"></theme></span></code></pre></div>
+<p>After creating a component, you can add the two minimal information :</p>
<ul>
+<li><p>Theme.xml file in <strong>plugins/my-theme/widget/</strong> with minimal information :</p>
+<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><theme</span><span class="ot"> name=</span><span class="st">"my-theme"</span>
+<span class="ot"> xmlns:xsi=</span><span class="st">"http://www.w3.org/2001/XMLSchema-instance"</span>
+<span class="ot"> xsi:noNamespaceSchemaLocation=</span><span class="st">"http://ofbiz.apache.org/dtds/widget-theme.xsd"</span><span class="kw">></span>
+<span class="kw"><visual-themes></span>
+ <span class="kw"><visual-theme</span><span class="ot"> id=</span><span class="st">"MY_THEME"</span><span class="ot"> display-name=</span><span class="st">"My Theme"</span><span class="kw">/></span>
+<span class="kw"></visual-themes></span>
+<span class="kw"></theme></span></code></pre></div></li>
<li><p>your data file to add your visual theme in <strong>plugins/my-theme/data/</strong></p>
<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"><span class="kw"><entity-engine-xml></span>
<span class="kw"><VisualTheme</span><span class="ot"> visualThemeId=</span><span class="st">"MY_THEME"</span><span class="ot"> visualThemeSetId=</span><span class="st">"BACKOFFICE"</span><span class="kw">/></span>