You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2007/01/14 21:26:33 UTC
svn commit: r496131 -
/forrest/trunk/site-author/content/xdocs/docs_0_80/howto/howto-buildPlugin.xml
Author: thorsten
Date: Sun Jan 14 12:26:33 2007
New Revision: 496131
URL: http://svn.apache.org/viewvc?view=rev&rev=496131
Log:
Allowing plugins to provide tiles.
Adding note to the plugin howto.
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=496131&r1=496130&r2=496131
==============================================================================
--- 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 Sun Jan 14 12:26:33 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 and resources for use in structurer files used within
+ <p>Plugins can expose contracts, resources and tiles 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
@@ -456,12 +456,17 @@
<location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.{1}" />
</select>
</match>
- ]]></source>
+ <match pattern="resolvePluginTiles.**">
+ <select type="exists">
+ <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.theme}/html/{1}.vt.xml" />
+ <location src="{forrest:forrest.plugins}/PLUGIN_NAME/resources/themes/{properties:dispatcher.fallback.theme}/html/{1}.vt.xml" />
+ </select>
+ </match>]]></source>
<p>Of course, you should replace <code>PLUGIN_NAME</code> with the name of
your plugin.</p>
- <p>Once Dispatcher becomes stable we will add this match to the default locationmap
+ <p>Once Dispatcher becomes stable we will add this matches to the default locationmap
which is generated when you seed a new plugin, but for now it must be done manually.</p>
</section>