Series 2: Step by step Chapter 2 of 13

Replacing an image

Editing content
Applies to: every Sulu website As of Sulu 3.0

In short

Open the block and the Images field. Use the image icon to select an image from the media or upload a new one. Remove the old image with the trash icon and publish the page.

On the example website the image of a page sits in a block. Where images appear and what the field is called is set by the template of your website.

Afterwards the new image is in your media. You can reuse it elsewhere.

Helpful first: 2.1 Changing text on a page 1.6 Media: images and files

Step 1 of 6 Opening the block and finding the image

Open the page whose image you want to change. In the example that is the page Tyre service under Services. Click the block with the image so that it expands.

A block is a building block of a page. Scroll down in the block to the field Images (1). It holds the image that the page shows.

Step 2 of 6 Opening the media

Click the image icon in the gray bar on the left. The window Select media opens. Click a folder, in the example Workshop. With All media (1) you return to all folders.

If the new image is already in the media, click it and then Confirm. Then continue with step 4. If the image is new, click Upload file (2).

Step 3 of 6 Uploading a new image

Click Upload file and choose the image file on your computer. If you have not opened a folder yet, Sulu first asks which folder the image should go into.

The new image appears as the first tile and is already checked (1). Click Confirm (2).

Step 4 of 6 Removing the old image

The Images field now holds two images. Click the trash icon (1) of the old image. The image disappears from the block.

Step 5 of 6 Checking in the preview

On the right you see the preview of your website. It already shows the new image. The block of the example website shows images in landscape format and crops a portrait photo, as here. How your website crops images is set by the template.

Step 6 of 6 Saving and publishing

At the top left, click the small arrow next to the floppy disk icon (1) and choose Save and publish (2). Visitors then see the new image.

With Save as draft you keep your work without visitors seeing anything.

Title of the new image

An uploaded image first carries its file name as title. How to change the title, description and author is explained in the chapter Uploading an image and describing it properly.

More on this