You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by se...@apache.org on 2006/06/20 04:33:59 UTC

svn commit: r415485 - /jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml

Author: seade
Date: Mon Jun 19 19:33:59 2006
New Revision: 415485

URL: http://svn.apache.org/viewvc?rev=415485&view=rev
Log:
Minor documentation change to address TRQD8.
The patch attached to the issue said it so much clearer than I did.

Modified:
    jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml

Modified: jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml
URL: http://svn.apache.org/viewvc/jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml?rev=415485&r1=415484&r2=415485&view=diff
==============================================================================
--- jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml (original)
+++ jakarta/turbine/core/trunk/xdocs/howto/velocity-site-howto.xml Mon Jun 19 19:33:59 2006
@@ -275,14 +275,25 @@
 ]]></source>
 
 <p>
-As you can see above, a "," rather than a "/" is used to separate elements of
-the template path.  By changing the default pull tool for $link to
-<code>TemplateLinkWithSlash</code> you could use "/" as the separator however
-this is not recommended as it is less efficient (internally they are converted
-to "," so as to avoid problems parsing pathinfo).
-The above will create a fully formed URI with the session information
-encoded into the link if the client browser has cookies turned off.
+As you can see above, I used a "," instead of a "/".  The above will create
+a fully formed URI with the session information encoded into the link if the \
+client browser has cookies turned off.
 </p>
+
+<p>
+    If you really want to use a slash instead of the comma when using the $link
+    tool, you will need to make a change to your TurbineResources.properties
+    file.  You need to change the value of <code>tool.request.link</code> from
+    <code>org.apache.turbine.util.template.TemplateLink</code> to
+    <code>org.apache.turbine.util.template.TemplateLinkWithSlash</code>.
+</p>
+<p>
+    You will incur a slight performance hit since this class will replace the
+    slash for with a comma for you.  The URL that is build as a result will be
+    identical.
+</p>
+
+
 
 </section>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org