Closed oscarlundberg-sthlm closed 1 year ago
$view is returned empty if the Statamic version isn't regex.
(Sorry for the bad markdown formatting)
Currently:
` /**
Return the body content */ public function body() { $data = PageDataParser::getData(collect($this->context));
if (config('statamic.antlers.version') == 'regex') { $view = view('aardvark-seo::tags.body', $data); } else { View::make('aardvark-seo::tags.body', $data->all()); } return $view;
}
/**
Return the footer content */ public function footer() { $data = PageDataParser::getData(collect($this->context));
if (config('statamic.antlers.version') == 'regex') { $view = view('aardvark-seo::tags.footer', $data); } else { View::make('aardvark-seo::tags.footer', $data->all()); } return $view;
}`
Suggestion:
if (config('statamic.antlers.version') == 'regex') { $view = view('aardvark-seo::tags.body', $data); } else { $view = View::make('aardvark-seo::tags.body', $data->all()); } return $view;
if (config('statamic.antlers.version') == 'regex') { $view = view('aardvark-seo::tags.footer', $data); } else { $view = View::make('aardvark-seo::tags.footer', $data->all()); } return $view;
Thanks @oscarlundberg-sthlm , This has been fixed in 2.0.30
$view is returned empty if the Statamic version isn't regex.
(Sorry for the bad markdown formatting)
Currently:
` /**
Return the body content */ public function body() { $data = PageDataParser::getData(collect($this->context));
}
/**
Return the footer content */ public function footer() { $data = PageDataParser::getData(collect($this->context));
}`
Suggestion:
` /**
Return the body content */ public function body() { $data = PageDataParser::getData(collect($this->context));
}
/**
Return the footer content */ public function footer() { $data = PageDataParser::getData(collect($this->context));
}`