Set up image gallery structure field
This commit is contained in:
parent
2e9d72eb16
commit
00b2118e2c
5 changed files with 77 additions and 84 deletions
|
@ -2,15 +2,15 @@
|
|||
|
||||
return function ($site) {
|
||||
|
||||
// Get image files section content
|
||||
$images = $site->image_gallery()->toFiles();
|
||||
// Get items from image gallery structure field
|
||||
$galleryItems = $site->image_gallery()->toStructure();
|
||||
|
||||
// Get contact fields content
|
||||
$email = $site->email();
|
||||
$instagram = $site->instagram();
|
||||
|
||||
return [
|
||||
'images' => $images,
|
||||
'galleryItems' => $galleryItems,
|
||||
'email' => $email,
|
||||
'instagram' => $instagram,
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue