[Yanel-commits] rev 34850 -
public/yanel/trunk/src/realms/yanel-website/content
simon at wyona.com
simon at wyona.com
Fri Apr 4 16:35:29 CEST 2008
Author: simon
Date: 2008-04-04 16:35:28 +0200 (Fri, 04 Apr 2008)
New Revision: 34850
Modified:
public/yanel/trunk/src/realms/yanel-website/content/95106ce8-a6db-4abe-bbc3-7b4b6d0fc855
Log:
docu fixed
Modified: public/yanel/trunk/src/realms/yanel-website/content/95106ce8-a6db-4abe-bbc3-7b4b6d0fc855
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/95106ce8-a6db-4abe-bbc3-7b4b6d0fc855 2008-04-04 14:21:18 UTC (rev 34849)
+++ public/yanel/trunk/src/realms/yanel-website/content/95106ce8-a6db-4abe-bbc3-7b4b6d0fc855 2008-04-04 14:35:28 UTC (rev 34850)
@@ -1,7 +1,9 @@
-<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Created from template ...</title> <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body> <h1>Access global and resource type specific data from a resource type</h1><p>If you need to access global or resource type specific data (e.g. images, javascript, css etc.) from within your resource-type, then you can place it either in webapps/yanel/htdocs (global) or in MY-RESOURCE_TYPE/htdocs (resource type specific).</p><p>To access the data there are two helper methods in <tt>org.wyona.yanel.core.util.PathUtil</tt>:</p><p><b>Resource type specific:</b><tt><br/></tt></p><p><tt>getResourcesHtdocs(Resource resource) <br/></tt></p><p>for example:</p>
-<p><tt>sb.append("<script src=\"" + PathUtil.getGlobalHtdocs(this) +
-"yanel-js/prototype.js\" type=\"text/javascript\"></script>");</tt></p>
-<p>will generate:<tt><br/></tt></p>
-
-<p><tt><script src="REALM/yanel/yanel-js/prototype.js" type=\"text/javascript\"></script></tt></p><p>whereas REALM denotes the path back to the realm root and "yanel" is the reserved prefix (configured within web.xml)<br/><br/><b>Global:</b> <tt><br/></tt></p><p><tt>getGlobalHtdocs(Resource resource)</tt></p><p>for example:<br/></p><p><tt>sb.append("<script src=\"" + PathUtil.getResourcesHtdocs(this)+ "js/ajaxlookup.js\" type=\"text/javascript\"></script>");</tt></p><p>will generate:<br/></p><p><tt><script src="REALM/yanel/resource-types/http://www.wyona.org/yanel/resource/1.0::tinymce/js/ajaxlookup.js" type=\"text/javascript\"></script></tt></p></body>
+<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Created from template ...</title> <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body> <h1>Access global and resource type specific data from a resource type</h1><p>If you need to access global or resource type specific data (e.g. images, javascript, css etc.) from within your resource-type, then you can place it either in webapps/yanel/htdocs (global) or in MY-RESOURCE_TYPE/htdocs (resource type specific).</p><p>To access the data there are two helper methods in <tt>org.wyona.yanel.core.util.PathUtil</tt>:</p><p><b>Resource type specific:</b><tt><br/></tt></p><p><tt>getResourcesHtdocsPath</tt><tt>(Resource resource) <br/></tt></p><p>for example:</p>
+<p><tt>sb.append("<script src=\"" + PathUtil.getResourcesHtdocsPath(this) +
+"js/ajaxlookup.js\" type=\"text/javascript\"></script>");</tt></p>
+<p>will generate:</p><p><tt><script
+src="BACK2REALM/yanel/resource-types/http://www.wyona.org/yanel/resource/1.0::tinymce/js/ajaxlookup.js"
+type=\"text/javascript\"></script></tt></p>
+<p>whereas BACK2REALM denotes the path back to the realm root and "yanel" is the reserved prefix (configured within web.xml)<br/><br/><b>Global:</b> <tt><br/></tt></p><p><tt>getGlobalHtdocsPath(Resource resource)</tt></p><p>for example:<br/></p><p><tt>sb.append("<script src=\"" + PathUtil.getGlobalHtdocsPath(this) +
+"yanel-js/prototype.js\" type=\"text/javascript\"></script>");</tt></p><p>will generate:<br/></p><p><tt><script src="BACK2REALM/yanel/yanel-js/prototype.js" type=\"text/javascript\"></script></tt></p></body>
</html>
\ No newline at end of file
More information about the Yanel-commits
mailing list