You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by tw...@apache.org on 2005/09/10 18:06:22 UTC

svn commit: r280016 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog: ./ resources/stylesheets/ resources/templates/ src/documentation/content/xdocs/

Author: twilliams
Date: Sat Sep 10 09:06:01 2005
New Revision: 280016

URL: http://svn.apache.org/viewcvs?rev=280016&view=rev
Log:
switched to views. 

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/templates/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv   (with props)
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/forrest.properties
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/stylesheets/directory2xdoc.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/site.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/forrest.properties
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/forrest.properties?rev=280016&r1=280015&r2=280016&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/forrest.properties (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/forrest.properties Sat Sep 10 09:06:01 2005
@@ -27,6 +27,7 @@
 # Specifies name of Forrest skin to use
 #project.skin=tigris
 #project.skin=pelt
+project.skin=leather-dev
 
 # comma separated list, file:// is supported
 #forrest.skins.descriptors=http://forrest.apache.org/skins/skins.xml,file:///c:/myskins/skins.xml
@@ -106,4 +107,6 @@
 # The names of plugins that are required to build the project
 # comma separated list (no spaces)
 # Run "forrest available-plugins" for a list of plug-ins currently available
-project.required.plugins=org.apache.forrest.plugin.input.Blog,org.apache.forrest.plugin.input.projectInfo,org.apache.forrest.plugin.output.pdf
+project.required.plugins=org.apache.forrest.plugin.input.Blog,org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.output.viewHelper.xhtml,org.apache.forrest.plugin.internal.view
+#project.required.plugins=org.apache.forrest.plugin.input.Blog,org.apache.forrest.plugin.output.pdf
+

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt?rev=280016&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt Sat Sep 10 09:06:01 2005
@@ -0,0 +1,16 @@
+This plugin exists to explore actually *using* metadata in Forrest.  We have long had "meta" elements that are being put to use.  For ease of development, the plugin explores the issues using an XPathDirectoryGenerator, but the concepts would generally apply to any source that supports xpath queries.  
+
+The "blog" is only important because it is generally understood by folks and thus not alot of explanations of the use-case are necessary.  The idea of really using metadata within Forrest applies to many more use-cases than just a weblog.
+
+The scope is using metadata for some purpose, it isn't limited to the simplistic "meta" elements.  
+
+Goals for now:
+o) Dynamically generate lists of articles relevant to a certain "category".  It must support the reality of many-to-many relationships between "articles" and "categories".
+
+o) Get the site.xml to support displaying context with these articles.  For example, if there is an article XYZ that belongs to both categories "News" AND "Sports".  If a user navigates to that article XYZ through the clicking on the "News" category, then the menu's "selected" should be on the "News" category.  However, if the article was navigated to from the "Sports" category, then the "Sports" menu should be "selected".
+
+o) Allow for "related content/topics".  One should be able to include in the metadata that a particular article "relates to" another article (as in "Related" or "See also").  
+
+???
+
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/notes.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/stylesheets/directory2xdoc.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/stylesheets/directory2xdoc.xsl?rev=280016&r1=280015&r2=280016&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/stylesheets/directory2xdoc.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/resources/stylesheets/directory2xdoc.xsl Sat Sep 10 09:06:01 2005
@@ -27,7 +27,15 @@
         <title>Category: <xsl:value-of select="$category"/></title> 
       </header> 
       <body> 
+        <section id="overview">
+          <title>
+            My thoughts on <xsl:value-of select="$category"/>
+          </title> 
+   
           <xsl:apply-templates select="//dir:file"/>
+         
+        </section>
+
       </body>
     </document>
   </xsl:template>
@@ -42,7 +50,6 @@
     -->
       <xsl:for-each select="ancestor::dir:directory"><xsl:if test="position() > 0"><xsl:value-of select="./@name"/>/</xsl:if></xsl:for-each>
     </xsl:variable>
-
     <p>
       <strong>
         <xsl:element name="a">

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv?rev=280016&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv Sat Sep 10 09:06:01 2005
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2002-2005 The Apache Software Foundation or its licensors,
+as applicable.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<forrest:views xmlns:forrest="http://apache.org/forrest/templates/1.0" >
+    <forrest:view type="xhtml">
+        <forrest:css url="default.css"/>
+        <forrest:contract name="siteinfo-meta"/>
+        <forrest:hook name="container">
+            <forrest:hook name="header">
+              <forrest:contract name="branding-tagline">
+		            <forrest:properties contract="branding-tagline">
+								  <forrest:property name="branding-tagline-name">new seed</forrest:property>
+		              <forrest:property name="branding-tagline-tagline">powered by forrest:views</forrest:property>
+								 </forrest:properties>
+		          </forrest:contract>
+              <forrest:hook name="nav-main-hook">
+                <forrest:contract name="nav-main"/>
+              	<forrest:contract name="nav-main-sub"/>
+              </forrest:hook>
+            </forrest:hook>
+            <forrest:hook name="page">
+                <forrest:hook name="leftbar">
+                    <forrest:contract name="nav-section"/>
+                    <forrest:contract name="search-input"/>
+                </forrest:hook>
+                <!-- You can group elements to a template and call it from any view.
+	                e.g.
+	                <forrest:hook name="export-link">
+	                  <forrest:contract name="content-xml-link"/>
+	                  <forrest:contract name="content-pdf-link"/>
+	                </forrest:hook>
+	                can be called as <forrest:call-template name="export-link"/>
+	                when saved as {project:resources}/templates/export-link.vt.xml 
+	              -->
+                <forrest:call-template name="export-link"/>
+                
+                <forrest:hook name="content">
+                    <forrest:contract name="content-title"/>
+                    <forrest:contract name="content-abstract"/>
+                    <!--<forrest:contract name="content-minitoc"/>-->
+                    <forrest:contract name="content-main"/>
+                </forrest:hook>
+            </forrest:hook>
+        </forrest:hook>
+        <forrest:hook name="footer">
+            <forrest:contract name="siteinfo-feedback"/>
+            <forrest:contract name="siteinfo-last-published"/>
+        </forrest:hook>
+    </forrest:view>
+</forrest:views>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/default.fv
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/site.xml?rev=280016&r1=280015&r2=280016&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/site.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Blog/src/documentation/content/xdocs/site.xml Sat Sep 10 09:06:01 2005
@@ -41,9 +41,7 @@
   
   <blog label="Categories">
     <index label="Index" href="blog/index.html" description="My Sample Web Blog"/>
-    <news label="News" href="blog/News/index.html" description="Thoughts on the current events">
-      <entry1 href="blog/entry2.html"/>
-    </news>
+    <news label="News" href="blog/News/index.html" description="Thoughts on the current events"/>
     <sports label="Sports" href="blog/Sports/index.html" description="Thoughts on sports"/>
   </blog>