Gallery Overview

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Using / Maintaining an installation of OpenCms]]
 
[[Category:Using / Maintaining an installation of OpenCms]]
 +
Galleries can make editing pages for your users a lot easier.  These can include important images or commonly used HTML snippets, and are much easier to sort through than just looking through the file system.  Plus, image galleries will show previews of the image.
 +
 +
==Adding an HTML Gallery==
 +
*Navigate to the folder where you want the gallery
 +
*Select New->Extended Folder
 +
*Select HTML Gallery
 +
*Once the folder is created, add a plain text file to the folder, and put some HTML into it
 +
*Create one file for each HTML snippet
 +
 +
Now, when you go to the editor, and choose HTML Galleries from the toolbar buttons, you can browse through your HTML snippets, and select one to get added to your page.
 +
 +
You can even put JSP files into the HTML Gallery, and include dynamically generated HTML.
 +
 +
NOTE: There's an issue sometimes with FCKEditor that causes your newly inserted HTML snippet to disappear. A work around is to insert a carriage return at the top of the file. You can alternatively edit the default body to have it in place too.

Revision as of 01:34, 28 June 2007

Galleries can make editing pages for your users a lot easier. These can include important images or commonly used HTML snippets, and are much easier to sort through than just looking through the file system. Plus, image galleries will show previews of the image.

Adding an HTML Gallery

  • Navigate to the folder where you want the gallery
  • Select New->Extended Folder
  • Select HTML Gallery
  • Once the folder is created, add a plain text file to the folder, and put some HTML into it
  • Create one file for each HTML snippet

Now, when you go to the editor, and choose HTML Galleries from the toolbar buttons, you can browse through your HTML snippets, and select one to get added to your page.

You can even put JSP files into the HTML Gallery, and include dynamically generated HTML.

NOTE: There's an issue sometimes with FCKEditor that causes your newly inserted HTML snippet to disappear. A work around is to insert a carriage return at the top of the file. You can alternatively edit the default body to have it in place too.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox