lenya/src/webapp/lenya/pubs/default/content/authoring create.xsp,1.1,1.2

Christian Egli <[email protected]>
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/webapp/lenya/pubs/default/content/authoring
In directory erbium:/tmp/cvs-serv656/src/webapp/lenya/pubs/default/content/authoring

Modified Files:
	create.xsp 
Log Message:
The parenturi is normaly calculated through the PageEnvelope in the
util logicsheet. However I now added the possibility to override this
with a request parameter.


Index: create.xsp
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/content/authoring/create.xsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** create.xsp	8 May 2003 08:34:42 -0000	1.1
--- create.xsp	8 May 2003 14:06:06 -0000	1.2
***************
*** 2,10 ****
  
  <xsp:page
!        language="java"
!        xmlns:xsp="http://apache.org/xsp"  
!        xmlns:xsp-lenya="http://www.lenya.org/xsp/lenya/1.0"
!        >
! 
    <xsp:structure>
      <xsp:include>org.apache.lenya.cms.ac.Identity</xsp:include>
--- 2,10 ----
  
  <xsp:page
!   language="java"
!   xmlns:xsp="http://apache.org/xsp"  
!   xmlns:xsp-lenya="http://www.lenya.org/xsp/lenya/1.0"
!   >
!   
    <xsp:structure>
      <xsp:include>org.apache.lenya.cms.ac.Identity</xsp:include>
***************
*** 34,39 ****
          }
        }
        <xsp:content>
- 	<parentid><xsp-lenya:document-id/></parentid>
  	<doctype><xsp:expr>request.getParameter("doctype")</xsp:expr></doctype>
        </xsp:content>
--- 34,47 ----
          }
        }
+       if (request.getParameter("parent-uri") != null) {
+         <xsp:content>
+ 	  <parentid><xsp:expr>request.getParameter("parent-uri")</xsp:expr></parentid>
+         </xsp:content>
+       } else {
+         <xsp:content>
+ 	  <parentid><xsp-lenya:document-id/></parentid>
+         </xsp:content>
+       }
        <xsp:content>
  	<doctype><xsp:expr>request.getParameter("doctype")</xsp:expr></doctype>
        </xsp:content>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.