You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2013/02/19 08:48:13 UTC

svn commit: r1447611 - in /sling/site/trunk/content: index.mdtext news.mdtext res/jquery.js

Author: fmeschbe
Date: Tue Feb 19 07:48:13 2013
New Revision: 1447611

URL: http://svn.apache.org/r1447611
Log:
Dynamically load the news excerpt (currently five elements) from the news page
using JQuery scripting.

* Remove reminder comment from news page
* Remove the copy of the news from the index page
* Add JQuery 1.8.3

Added:
    sling/site/trunk/content/res/jquery.js
Modified:
    sling/site/trunk/content/index.mdtext
    sling/site/trunk/content/news.mdtext

Modified: sling/site/trunk/content/index.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/index.mdtext?rev=1447611&r1=1447610&r2=1447611&view=diff
==============================================================================
--- sling/site/trunk/content/index.mdtext (original)
+++ sling/site/trunk/content/index.mdtext Tue Feb 19 07:48:13 2013
@@ -34,15 +34,11 @@ complex applications. 
 
 ## News
 
-* New Releases: Apache Sling Installer Core 3.4.6, Apache Sling Installer Configuration Factory 1.0.10, Apache Sling JCR Instaler 3.1.6, Apache Sling Parent 15, Apache Sling Fragment Extension XML 1.0.2, Apache Sling Fragment Extension WS 1.0.2, Apache Sling Fragment Extension Activation 1.0.2 (February 18th, 2013)
-* New Releases: Apache Sling Resource Resolver 1.0.4, Apache Sling JCR Resource 2.2.4 (February 14, 2013) 
-* New Releases: Apache Sling Installer Core 3.4.4, Apache Sling JCR Resource 2.2.2, Apache Sling Resource Resolver 1.0.2, Apache Sling Security 1.0.2, Apache Sling Parent POM 14 (December 20th, 2012)
-* New Release: Apache Sling Servlet Resolver 2.2.2 (December 10th, 2012)
-* New Releases: Apache Sling Settings 1.2.2, Apache Sling Auth Core 1.1.0, Apache Sling Commons Logservice 1.0.2, Apache Sling Installer Core 3.4.2, Apache Sling Scripting JSP 2.0.26, Apache Sling Commons Compiler 2.1.0, Apache Sling JCR Compiler 2.1.0, Apache Sling I18n 2.2.4, Apache Sling JCR Classloader 3.1.10, Apache Sling JCR Webdav 2.1.2, Apache Sling JCR Davex 1.1.0 (November 30th, 2012)
-* New Releases: Apache Sling Maven Launchpad Plugin 2.2.0, Apache Sling Commons OSGi 2.2.0, Apache Sling Launchpad Installer 1.2.0, Apache Sling Rewriter 1.0.4, Apache Sling Settings 1.2.0 (November 19th, 2012)
-* New Releases: Apache Sling API 2.3.0, Apache Sling Bundle Resource Provider 2.1.0, Apache Sling File System Resource Provider 1.1.0, Apache Sling JCR Resource 2.2.0, Apache Sling Resource Resolver 1.0.0, Apache Sling Servlets Get 2.1.4, Apache Sling Servlets Post 2.2.0, Apache Sling Servlets Resolver 2.2.0, Apache Sling Adapter 2.1.0, Apache Sling Commons Testing 2.0.12 (November 15th, 2012)
-* New Release: Apache Sling JSP Taglib 2.1.8, Apache Sling Installer Core 3.4.0, Apache Sling Installer API 1.0.0, Apache Sling Installer Console 1.0.0, Apache Sling JCR Wrapper 2.0.0 (October 29th, 2012)
-* [all news...](news.html)
+<ul id="newsExcerpt">
+</ul>
+
+
+Refer to the news [archive]({{ refs.news.path }}) for all news.
 
 ## History
 
@@ -157,4 +153,15 @@ While Sling does not require a specific 
 run in, Sling is being developed using [Apache Felix](http://felix.apache.org)
  as the OSGi framework implementation. It has not been tested yet, but it
 is expected that Sling also operates perfectly inside other OSGi frameworks
-such as [Equinox](http://www.eclipse.org/equinox) and [Knopflerfish](http://www.knopflerfish.org).
\ No newline at end of file
+such as [Equinox](http://www.eclipse.org/equinox) and [Knopflerfish](http://www.knopflerfish.org).
+
+
+<script src="/res/jquery.js" type="text/javascript"></script>
+<script type="text/javascript">
+        $(document).ready(function() {
+            $.get("/news.html", function(news) {
+                var $newsExcerpt = $(news).find('li').slice(0,5);
+                $('#newsExcerpt').append($newsExcerpt);
+            });
+        });
+</script>

Modified: sling/site/trunk/content/news.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/news.mdtext?rev=1447611&r1=1447610&r2=1447611&view=diff
==============================================================================
--- sling/site/trunk/content/news.mdtext (original)
+++ sling/site/trunk/content/news.mdtext Tue Feb 19 07:48:13 2013
@@ -1,6 +1,5 @@
 Title: News
 
-<!-- If you add a news item, remember to update the section in the index page as well -->
 * New Releases: Apache Sling Installer Core 3.4.6, Apache Sling Installer Configuration Factory 1.0.10, Apache Sling JCR Instaler 3.1.6, Apache Sling Parent 15, Apache Sling Fragment Extension XML 1.0.2, Apache Sling Fragment Extension WS 1.0.2, Apache Sling Fragment Extension Activation 1.0.2 (February 18th, 2013)
 * New Releases: Apache Sling Resource Resolver 1.0.4, Apache Sling JCR Resource 2.2.4 (February 14, 2013) 
 * New Releases: Apache Sling Installer Core 3.4.4, Apache Sling JCR Resource 2.2.2, Apache Sling Resource Resolver 1.0.2, Apache Sling Security 1.0.2, Apache Sling Parent POM 14 (December 20th, 2012)

Added: sling/site/trunk/content/res/jquery.js
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/res/jquery.js?rev=1447611&view=auto
==============================================================================
--- sling/site/trunk/content/res/jquery.js (added)
+++ sling/site/trunk/content/res/jquery.js Tue Feb 19 07:48:13 2013
@@ -0,0 +1,2 @@
+/*! jQuery v1.8.3 jquery.com | jquery.org/license */

[... 3 lines stripped ...]