]> _ Git - cubist_cms-back.git/commitdiff
wip #2956
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 22 Aug 2019 10:26:13 +0000 (12:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 22 Aug 2019 10:26:13 +0000 (12:26 +0200)
src/app/Magic/Search.php

index 44f1df98aa6838e617a9b62bed1536610991e33e..3b2b4269349245f53c75c6544bb1c0e837b84d8a 100644 (file)
@@ -77,6 +77,7 @@ class Search
             }
             $short_title = $meta->getAttribute('data-short-title');
             $keywords = $meta->getAttribute('data-keywords');
+            $type = $meta->getAttribute('data-type');
 
             $body = [
                 'short_title' => $short_title,
@@ -84,6 +85,7 @@ class Search
                 'keywords' => $keywords,
                 'description' => $doc->select('meta[name="description"]')[0]['attributes']['content'],
                 'main' => $doc->getDOM()->saveHTML($doc->select('main', false)->item(0)),
+                'type' => $type,
             ];
 
             $data = [