Use a dedicated content type for assets
Depending on how and where you use your assets, you may want to specify display options or include additional metadata. To achieve that, it’s best to create a dedicated content type where you define the options and prepare the fields for metadata. You then create components based on that type for your assets and set the assets’ options.
- Your asset requirements might influence the way you set up your projects.
Use case: display settings for images
Let’s say you want to specify the display width and alignment of images so that your editors can choose how the images are presented on your website:- Create a new content type.
- In the new content type:
- Add an asset element for an image.
- Add two multiple choice elements, one for the display width option and one for the alignment option.
- Add guidelines so your content creators know how to use the settings.
- Clickable images: Create a content type that includes an asset element for the image and a text element for the URL.
- Include specific metadata to your files, such as license or source: Add the necessary text or number elements designated for the metadata to the content type.
Use components to add images to content
Your content creators will use the dedicated content type for assets when they need to add an image with settings to their content. They’ll create a component, insert the image, and set how wide and with what alignment it should display.Content item approach in multilingual projects
If you use components to hold your assets, convert them to content items, and use those items as linked items, it’s important to understand how language fallbacks work. If you add a content item with an image as a linked item in one language (for example, English), it will not appear in any other language (for example, Spanish) unless you translate it into that language. Even if the information you’re including in your image content item isn’t language-dependent (it’s just the creator’s name, for instance), you need to create a variant in every language to have it appear. Copying content from the original language can give you a head start.