Multiples

The main difference between a single and a multiple section type is that a multiple section type must have a folder with the section name and MUST contain a php file called entry.blade.php. and index.blade.php.

If you are unsure of the folder and file layout of a multiple, simply click the boiler plate template generator and it will generate the folder structure and files in your view file. Then you can simply inspect them with your favourite text editor (we recommend visual studio code) and edit these files.

- blog(Folder)
-- entry.blade.php(File)
-- index.blade.php(File)

When you create a new 'Multiple' section you can loop through all the entries in the index.php file by using the following syntax:

@foreach ($multipleHandle as $row) {{ $row['fieldHandle'] }} @endforeach

Multiples are used for streams of similar content, such as blogs or recipes