virtual sample : rotation x y working
This commit is contained in:
parent
50e152fc00
commit
2f7a3796d2
430 changed files with 500 additions and 93 deletions
10
public/site/blueprints/pages/track.yml
Normal file
10
public/site/blueprints/pages/track.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
title: Échantillon virtuel
|
||||
|
||||
tabs:
|
||||
contentTab:
|
||||
label: Contenu
|
||||
fields:
|
||||
views:
|
||||
label: Rendu
|
||||
type: files
|
||||
required: true
|
||||
|
|
@ -16,9 +16,14 @@ options:
|
|||
|
||||
tabs:
|
||||
contentTab:
|
||||
fields:
|
||||
views:
|
||||
label: Vues
|
||||
type: files
|
||||
stepName:
|
||||
type: hidden
|
||||
sections:
|
||||
tracksSection:
|
||||
label: Piste
|
||||
type: pages
|
||||
layout: cards
|
||||
template: track
|
||||
fieldsSection:
|
||||
type: fields
|
||||
fields:
|
||||
stepName:
|
||||
type: hidden
|
||||
|
|
|
|||
|
|
@ -66,8 +66,21 @@ class ProjectPage extends Page {
|
|||
|
||||
private function handleVirtualSampleStep($child, &$files, &$uri) {
|
||||
$uri = $child->parent()->uri() . '?dialog=' . $child->slug();
|
||||
foreach ($child->views()->toFiles() as $file) {
|
||||
$files[] = getFileData($file);
|
||||
|
||||
foreach ($child->children() as $key => $track) {
|
||||
|
||||
$trackData = [
|
||||
'title' => (string) $track->title(),
|
||||
'slug' => (string) $track->slug(),
|
||||
'files' => [],
|
||||
];
|
||||
|
||||
foreach ($track->views()->toFiles() as $view) {
|
||||
$trackData['files'][] = getFileData($view);
|
||||
}
|
||||
|
||||
$files[] = $trackData;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue