cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] PortalEngine FOPPDFEncryption Fri Feb 27 22:00:03 2004
Date Fri, 27 Feb 2004 21:00:04 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=PortalEngine , version: 15 on Fri Feb 27 20:47:33
2004 by 64.242.240.2

+ ----
+ 
+ __Q:__ How do I customize my coplet window?
+ 
+ 
+ __A:__ You can customize coplet window rendering by creating a new renderer or configuring
an existing one in cocoon.xconf 
+ 
+ For example, if you want a round window border instead of the standard, add a new renderer:
+ \\
+ {{{
+   <renderer class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" 
+    logger="portal" name="round-window">
+    <aspects>
+      <aspect type="xslt">
+        <parameter name="style" value="{global:skin}styles/round-window.xsl"/>
+      </aspect>
+      <aspect type="parameter">
+        <parameter name="tag-name" value="window"/>
+      </aspect>
+      <aspect type="window">
+        <parameter name="root-tag" value="false"/>
+      </aspect>
+      <aspect type="coplet-full-screen"/>
+      <aspect type="coplet-sizing"/>
+      <aspect type="history"/>
+      <aspect type="coplet-cinclude"/>
+    </aspects>
+   </renderer>
+ }}}
+ \\
+ then add it in the coplet definition:
+ \\
+ {{{
+   <layout class="org.apache.cocoon.portal.layout.impl.CopletLayout" name="coplet">
+     <renderers default="window">
+       <renderer name="window"/>
+       <renderer name="nowindow"/>
+       <renderer name="round-window"/>
+    </renderers>
+   </layout> 
+ }}}
+ \\
+ and finally, switch the coplet renderer in your layout/portal.xml with the famous:
+ \\
+ {{{
+   <coplet-layout name="coplet" layout-renderer-name="round-window">
+ }}}
+ \\
+ [AlexRomayev] compliments of [Laurent Trillaud]
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=FOPPDFEncryption , version: 3 on Fri Feb 27
21:12:10 2004 by TorstenCurdt

- You can either configure the FOPSerializer like this (since 2.1.5-dev)
?        -------

+ You can configure the FOPSerializer like this (since 2.1.5-dev)
- or you use an external user config file
- 
- {{{
- <map:serializer name="fo2pdf"
-                 src="org.apache.cocoon.serialization.FOPSerializer"
-                 mime-type="application/pdf">
-   <user-config>D:/fop-fonts/config.xml</user-config>
- </map:serializer>
- }}}
- 
- which needs to look like this (untested!)
- 
- {{{
- <configuration>
-   <entry>
-     <key>ownerPassword</key><value>mypassword</value>
-   </entry>
-   <entry>
-     <key>allowCopyContent</key><value>FALSE</value>
-   </entry>
-   <entry>
-     <key>allowEditContent</key><value>FALSE</value>
-   </entry>
-   <entry>
-     <key>allowPrint</key><value>FALSE</value>
-   </entry>
-   <entry>
-     <key>allowEditAnnotations</key><value>FALSE</value>
-   </entry>
- </configuration>
- }}}
- 



Mime
View raw message