You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by le...@cocoon.apache.org on 2004/09/09 20:33:49 UTC

[Cocoon Lenya Wiki] Updated: PicturesHowto

   Date: 2004-09-09T11:33:49
   Editor: AntonioGallardo <an...@apache.org>
   Wiki: Cocoon Lenya Wiki
   Page: PicturesHowto
   URL: http://wiki.apache.org/cocoon-lenya/PicturesHowto

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -2,9 +2,8 @@
 
 Many site editors are wondering how it might be possible to add pictures to the pages of their publication. This is quite straigt forward if you know how, but there are some pitfalls that you might trap in for sure and probably never find out of yourself. 
 
-{{{
-Note: It might be worth removing these pitfalls in later release and making image handling more straightforward and add some comfort functions such as visual image browsing or server side resizing. But for now let's focus on how to insert any pictures into your publication at all.
-}}}
+'''Note:''' ''It might be worth removing these pitfalls in later release and making image handling more straightforward and add some comfort functions such as visual image browsing or server side resizing. But for now let's focus on how to insert any pictures into your publication at all.''
+
 
 ===  The different places for pictures ===
 
@@ -17,8 +16,8 @@
 
 The pictures in the {{{resources/shared/images}}} folder cannot be uploaded by the content editor through the web browser but need to be put there by the administrator. They are referenced in the publication as {{ {$root}/images/name.ext}}, such as 
 
-{{{
-<img src="{$root}/images/project-logo.png"/>
+{{{
+<img src="{$root}/images/project-logo.png"/>
 }}}
 
 In many cases the content editor of the site will never have to deal with these as these images are often only referenced from the XSLT template that he or she should also not (have to) touch at all.
@@ -29,11 +28,11 @@
 
 In order to make asset uploading work, Lenya must be compiled with a specific parameter set in build.properties:
 
-{{{
-# Enable multipart requests (for security reasons turned off by default.
-# Uncomment to enable)
-
-enable.uploads=true
+{{{
+# Enable multipart requests (for security reasons turned off by default.
+# Uncomment to enable)
+
+enable.uploads=true
 }}}
 
 This is uncommented by default which means that the parameter will be set to ''false''. As a user you have to chance to tell the status of this parameter in Lenya. You might expect the Asset upload to be disabled or you might expect to get a warning message similar to the page you see if you try to use the ''Edit with Kupu'' menu option and Kupu is not installed.
@@ -50,9 +49,9 @@
 
 After you have uploaded a file make sure if shows up in the list.
 
-{{{
-Note for Windows users:
-Sometimes the file name extensions for picture files on Windows are in uppercase such as PICT0034.JPG. If you choose a file named like this Lenya might complain it could only handle .jpg and refuses that file. Take it literally: Just change the name to PICT0034.jpg and it will work. You don't even have to rename the file itself, it's enough to change it in the upload dialogue.
+{{{
+Note for Windows users:
+Sometimes the file name extensions for picture files on Windows are in uppercase such as PICT0034.JPG. If you choose a file named like this Lenya might complain it could only handle .jpg and refuses that file. Take it literally: Just change the name to PICT0034.jpg and it will work. You don't even have to rename the file itself, it's enough to change it in the upload dialogue.
 }}}
 
 Once you have uploaded your pictures to the server they are available to be inserted into the page.

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org