forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r492992 - /forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml
Date Fri, 05 Jan 2007 11:43:18 GMT
Author: thorsten
Date: Fri Jan  5 03:43:17 2007
New Revision: 492992

URL: http://svn.apache.org/viewvc?view=rev&rev=492992
Log:
Updating plugin howto to add the fallback theme dir for locationmap checking. 
Further extended the instruction for including plugin specific theme resources.

Modified:
    forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml

Modified: forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml?view=diff&rev=492992&r1=492991&r2=492992
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml Fri Jan
 5 03:43:17 2007
@@ -437,7 +437,7 @@
         that are intended to replace skins in the future. They allow for a much more
         configurable system of defining the contents and look and feel of a site.</p>
 
-        <p>Plugins can expose contracts for use in structurer files used within
+        <p>Plugins can expose contracts and resources for use in structurer files used
within
         Dispatcher-based sites. In order to do this you should develop your contracts
         as normal and place them in <code>PLUGIN_HOME/resources/themes</code>.
However,
         this, by itself, is not sufficient to export your contracts. You will also need to
@@ -446,7 +446,14 @@
         <source><![CDATA[
     <match pattern="resolvePluginContract.*.**">
       <select type="exists">
-        <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:theme}/{1}/{2}.ft"
/>
+        <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.theme}/{1}/{2}.ft"
/>
+        <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.ft"
/>
+      </select>
+    </match>
+    <match pattern="resolvePluginThemes.*.**">
+      <select type="exists">
+        <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.theme}/{1}/{2}.{1}"
/>
+        <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.{1}"
/>
       </select>
     </match>
         ]]></source>



Mime
View raw message