In this chapter, we will delve into the various methods of adding media to your content. In Chapter 2, Creating and Publishing Content, we saw how we can add media to content using the WYSIWYG editor. The WYSIWYG editor can be used to add images, documents, and videos into your content. However, this method leaves a great deal of control to the user adding the content. This is sometimes undesirable, as it can lead to inconsistency.
For example, if you wanted to run a video blog, you could allow users to enter the video embed code directly into the body text using the WYSIWYG editor, but this could lead to the video being displayed before, after, or between the text. In this chapter, we will see how to provide specific fields for attaching media to content, so that we can tightly control how the media is displayed.
This chapter begins by exploring how to build a simple slideshow carousel that is still powerful and flexible enough so that it can be very easily adapted to fit any...