forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r536394 - in /forrest/trunk: main/webapp/sitemap.xmap site-author/content/xdocs/docs_0_90/faq.xml site-author/content/xdocs/site.xml site-author/status.xml
Date Wed, 09 May 2007 02:20:12 GMT
Author: crossley
Date: Tue May  8 19:20:12 2007
New Revision: 536394

URL: http://svn.apache.org/viewvc?view=rev&rev=536394
Log:
Enable PHP. Thanks to Cyriaque Dupoirieux for the idea.

Modified:
    forrest/trunk/main/webapp/sitemap.xmap
    forrest/trunk/site-author/content/xdocs/docs_0_90/faq.xml
    forrest/trunk/site-author/content/xdocs/site.xml
    forrest/trunk/site-author/status.xml

Modified: forrest/trunk/main/webapp/sitemap.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/sitemap.xmap?view=diff&rev=536394&r1=536393&r2=536394
==============================================================================
--- forrest/trunk/main/webapp/sitemap.xmap (original)
+++ forrest/trunk/main/webapp/sitemap.xmap Tue May  8 19:20:12 2007
@@ -579,9 +579,16 @@
         </map:select>
         <map:serialize type="xml"/>
       </map:match>
+<!-- handle PHP -->
+      <map:match type="regexp" pattern="^(.*?)([^/]*).php$">
+        <map:generate src="cocoon://{1}{2}.html"/>
+        <map:serialize type="html"/>
+      </map:match>
+<!-- handle Lucene requests -->
       <map:match pattern="**.lucene">
         <map:mount uri-prefix="" src="search.xmap" check-reload="yes" />
       </map:match>
+<!-- resources for plugins -->
       <map:select type="exists">
         <map:when test="{lm:plugin.xmap.resources}">
           <map:mount uri-prefix="" 
@@ -590,6 +597,7 @@
                       pass-through="true"/>
         </map:when>
       </map:select>
+<!-- various other resources -->
       <map:match pattern="**.js">
         <map:mount uri-prefix="" src="resources.xmap" check-reload="yes" />
       </map:match>

Modified: forrest/trunk/site-author/content/xdocs/docs_0_90/faq.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/content/xdocs/docs_0_90/faq.xml?view=diff&rev=536394&r1=536393&r2=536394
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_90/faq.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs_0_90/faq.xml Tue May  8 19:20:12 2007
@@ -543,6 +543,31 @@
         </ol>
       </answer>
     </faq>
+    <faq id="output-filename-extension">
+      <question>How to use a different filename extension for output, e.g. *.php? </question>
+      <answer>
+        <p>
+          Use the power of the Cocoon sitemaps. There is default handling for *.php (see
main/webapp/sitemap.xmap) to map the 'php' extension to an internal request for "html". See
more about <link href="#php">PHP</link> below.
+        </p>
+        <p>
+          Use the same internal re-direction technique for your special needs, e.g. copy
that php match to your project sitemap and use ".htm" instead.
+        </p>
+      </answer>
+    </faq>
+    <faq id="php">
+      <question> How to generate pages ready for serving via PHP? </question>
+      <answer>
+        <p>
+          Use the *.php filename extension (see <link href="#output-filename-extension">above</link>)
+          for the output html links in site.xml navigation. Add your php processing instructions
to the source documents.
+        </p>
+        <p>
+          However, beware <link href="http://issues.apache.org/jira/browse/FOR-999">FOR-999</link>
+          "processing-instruction nodes in source are not always passed through to html output"
+          whereby only PIs in certain body elements are handled.
+        </p>
+      </answer>
+    </faq>
     <faq id="label-entity">
       <question> How to use special characters in the labels of the site.xml file?
</question>
       <answer>

Modified: forrest/trunk/site-author/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/content/xdocs/site.xml?view=diff&rev=536394&r1=536393&r2=536394
==============================================================================
--- forrest/trunk/site-author/content/xdocs/site.xml (original)
+++ forrest/trunk/site-author/content/xdocs/site.xml Tue May  8 19:20:12 2007
@@ -307,6 +307,7 @@
         <tab-index href="#tab-index"/>
         <cli-xconf href="#cli-xconf"/>
         <pageBreaks href="#pageBreaks"/>
+        <php href="#php"/>
         <site-xml href="#site-xml"/>
         <requirements href="#requirements"/>
         <xml-entities href="#xml-entities"/>

Modified: forrest/trunk/site-author/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/status.xml?view=diff&rev=536394&r1=536393&r2=536394
==============================================================================
--- forrest/trunk/site-author/status.xml (original)
+++ forrest/trunk/site-author/status.xml Tue May  8 19:20:12 2007
@@ -150,6 +150,11 @@
         Added document to facilitate
         <link href="site:upgrading_09">upgrading to v0.9</link>
       </action>
+<!-- 2007-05 -->
+      <action dev="DC" type="add" context="code">
+        Enable PHP by default. See the <link href="site:faq/php">FAQ</link>.
+        Thanks to Cyriaque Dupoirieux for the suggestion.
+      </action>
       <action dev="DC" type="fix" context="build" due-to="Ron Blaschke">
         Explicitly set the javac target@ to our defined base version.
         This fixed an issue with plugins being deployed by committers using



Mime
View raw message