You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/06/28 05:37:32 UTC

svn commit: r417659 - in /incubator/roller/branches/roller_3.0: src/org/apache/roller/pojos/WeblogEntryData.java web/WEB-INF/velocity/deprecated/comments.vm

Author: agilliland
Date: Tue Jun 27 20:37:32 2006
New Revision: 417659

URL: http://svn.apache.org/viewvc?rev=417659&view=rev
Log:
a couple tweaks to start supporting new permalink urls

- changed weblog entry pojo getPermaLink method to return new urls

- updated showCommentsForm() macro to post to new url


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/pojos/WeblogEntryData.java
    incubator/roller/branches/roller_3.0/web/WEB-INF/velocity/deprecated/comments.vm

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/pojos/WeblogEntryData.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/pojos/WeblogEntryData.java?rev=417659&r1=417658&r2=417659&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/pojos/WeblogEntryData.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/pojos/WeblogEntryData.java Tue Jun 27 20:37:32 2006
@@ -729,7 +729,7 @@
             // go with the "no encoding" version
         }        
         WebsiteData website = this.getWebsite();
-        return "/page/" + website.getHandle() + "?entry=" + lAnchor;        
+        return "/" + website.getHandle() + "/entry/" + lAnchor;        
     }
     
     /**

Modified: incubator/roller/branches/roller_3.0/web/WEB-INF/velocity/deprecated/comments.vm
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/web/WEB-INF/velocity/deprecated/comments.vm?rev=417659&r1=417658&r2=417659&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/web/WEB-INF/velocity/deprecated/comments.vm (original)
+++ incubator/roller/branches/roller_3.0/web/WEB-INF/velocity/deprecated/comments.vm Tue Jun 27 20:37:32 2006
@@ -186,7 +186,7 @@
 
     #showStatusMessage()
 
-    <form method="post" action="$ctxPath/comment" focus="name"
+    <form method="post" action="$ctxPath/$entry.website.handle/entry/$entry.anchor" focus="name"
         name="form" onsubmit="fixURL(this); return validateComments(this)">
         
         #if($requestParameters.popup)
@@ -195,7 +195,6 @@
 
         <!-- is this a post or a preview -->
         <input type="hidden" name="method" value="post" />
-        <input type="hidden" name="entryid" value="$entry.id" />
 
         <table cellspacing="0" cellpadding="1" border="0" width="95%">
         <tr><th>$text.get( "macro.weblog.name" )</th>