Please see Computing Services' blog post for more details
Creating an image gallery
If you do not already have an image gallery set up on your section then you need to create one before adding images to your pages.
- In the OpenCMS workplace navigate to the folder of your section (e.g. /study/)
- Click on New in the CMS workplace toolbar.
- On the window displayed, select Extended folder then Continue >>
- Select Image gallery as the resource type then click Continue >>
- Give the folder the name images and press Continue >>
- Give your folder a human-readable title (e.g. Study site images) and press Finish
Uploading an image to an image gallery
If you already have an image gallery (usually a folder called images in your section) then you can add images to it. This doesn’t add the image to the page, it just makes it available to be inserted.
- Ensure the image is the correct size according to http://www.bath.ac.uk/marketing/guides-assets/style-guides/image-guide/index.html
- If you need to resize or crop the image then this can be done using Paint. Follow the instructions at http://windows.microsoft.com/en-gb/windows7/resize-a-picture-using-paint
- Navigate to the image gallery for your section
- Click on the Upload button in the CMS workplace toolbar
- Click on Browse... button in the box that comes up and use the file upload explorer window to navigate to the location of your image on your computer
- You should now have the file path of the image on your computer in the Upload file box. Click Continue >>
- You will be presented with a box that contains the name of the file that will appear in the CMS so this is your opportunity to rename it according to our guidelines - do not use spaces or capital letters in the filename When renaming the file take care not to remove the .jpg from the end of the
name as this tells the CMS what type of file it is.
- Leave the Suggested file type as Image then click Continue >>
- Put in a title for the image. Known as the “alt-text” (or alternative text), this is requirement as part of our accessibility guidelines so that people with visual impairments can understand the content. The text should describe the image in a concise, meaningful and useful way
- Click Finish
Inserting an image into a page
- Open the page you want the image inserted into for editing
- Place the cursor at the beginning of the line at the place you wish to insert the image
- Click on the insert/edit image button
- Wait for the image gallery to load under “Available Galleries” and then click on
- Select your image gallery from the list. This list is in alphabetical order of folder structure from left to right
- Click on the image you uploaded
- Click on the green tick
- The image properties window will be shown and you need to remove the tick from the Create image spacing and change the Alignment to blank. This ensures the image appearance is determined by the template:
- Click on the Advanced tab on the top of the image properties window so that you can position the image in the page to the left or right of the text:
marginRight and marginLeft on the Stylesheet Classes mean that there is space between the image and the text on the right and left respectively
- Once you have done this click OK.
If you have positioned an image in a page, you may not see it move in the editor. This is because the template applies the settings to the image before it is displayed on the web page.