From: Vincent Vanwaelscappel Date: Thu, 22 Aug 2019 10:26:13 +0000 (+0200) Subject: wip #2956 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9d461c9cecfdf79026d9bc2a46ce3cb1be3938dc;p=cubist_cms-back.git wip #2956 --- diff --git a/src/app/Magic/Search.php b/src/app/Magic/Search.php index 44f1df9..3b2b426 100644 --- a/src/app/Magic/Search.php +++ b/src/app/Magic/Search.php @@ -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 = [