You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2012/10/15 14:40:16 UTC

svn commit: r835121 - in /websites/staging/sling/trunk/content: ./ documentation/tutorials-how-tos/46-line-blog.html

Author: buildbot
Date: Mon Oct 15 12:40:16 2012
New Revision: 835121

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/tutorials-how-tos/46-line-blog.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Oct 15 12:40:16 2012
@@ -1 +1 @@
-1366519
+1398269

Modified: websites/staging/sling/trunk/content/documentation/tutorials-how-tos/46-line-blog.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/tutorials-how-tos/46-line-blog.html (original)
+++ websites/staging/sling/trunk/content/documentation/tutorials-how-tos/46-line-blog.html Mon Oct 15 12:40:16 2012
@@ -156,13 +156,13 @@ If you get an error saying <em>javax.jcr
 <p>Add the following code to your script, after the <code>Sling.wizard()</code> call that was added in step 2:</p>
 <div class="codehilite"><pre><span class="nt">&lt;h3&gt;</span>Navigation<span class="nt">&lt;/h3&gt;</span>
 <span class="nt">&lt;ul&gt;</span>
-    <span class="nt">&lt;li&gt;&lt;em&gt;&lt;a</span> <span class="na">href=</span><span class="s">&quot;/content/blog/*.html&quot;</span><span class="nt">&gt;</span>[Create new post]()<span class="nt">&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;</span>
+    <span class="nt">&lt;li&gt;&lt;em&gt;&lt;a</span> <span class="na">href=</span><span class="s">&quot;/content/blog/*.html&quot;</span><span class="nt">&gt;</span>[Create new post]<span class="nt">&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;</span>
     <span class="nt">&lt;script&gt;</span>
       var posts = Sling.getContent(&quot;/content/blog&quot;, 2);
       for(var i in posts) {
         document.write(&quot;<span class="nt">&lt;li&gt;</span>&quot;
           + &quot;<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">&#39;/content/blog/&quot; + i + &quot;.html&#39;</span><span class="nt">&gt;</span>&quot;    
-          + posts[i]().title
+          + posts[i].title
           + &quot;<span class="nt">&lt;/a&gt;&lt;/li&gt;</span>&quot;);
       }
     <span class="nt">&lt;/script&gt;</span>
@@ -202,7 +202,7 @@ If you get an error saying <em>javax.jcr
 </ol>
 </div>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1345726 by fmeschbe on Sun, 3 Jun 2012 17:57:55 +0000
+        Rev. 1398269 by fmeschbe on Mon, 15 Oct 2012 12:40:11 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project