Closed jasonbradberry closed 4 months ago
We are experiencing the same problem here. Would be pretty improtant to fix this. Otherwise we are not able to use the plugin on the page.
@AndrewHaine @jackwakefield The Problem seems to be here (Tags/AardvarkSeoTags.php, method: head)
if (config('statamic.antlers.version') == 'regex') {
$view = view('aardvark-seo::tags.head', $data);
} else {
$view = View::make('aardvark-seo::tags.head', $data->all());
}
If i return the view with the helper function "view", all my sections will be rendered correctly. Just with the "View::make" implementation they will be cleared somehow.
Hi there,
Please could I confirm the following:
I'm currently unable to replicate this on a fresh Statamic 3.3.59 instance with Aardvark 2.0.30 with either the regex
or runtime
parser.
Thanks, Andrew
Hi @AndrewHaine
Here are my details:
Environment
Application Name: zahnarztzentrum.ch
Laravel Version: 9.42.2
PHP Version: 8.1.6
Composer Version: 2.3.7
Environment: local
Debug Mode: OFF
URL: zahnarztzentrum.test
Maintenance Mode: OFF
Statamic
Addons: 5
Antlers: runtime
Version: 3.3.59 PRO
Statamic Addons
jacksleight/statamic-miniset: 0.3.1
parfaitementweb/statamic-country-fieldtype: 1.0.0
raynl/generate-slug: 1.1.1
rias/statamic-address-field: 1.0.3
withcandour/aardvark-seo: 2.0.30
The issue is kinda weird. If you add one yield / section-pair it works fine. We have 2 yield tags in the header and with the tag inserted in the header it will display only one of them. With the response changed to the "view()" helper it will display both of them.
We are closing this issue as we are unable to replicate, and it seems to refer to a version of Aardvark for which we are no longer fixing bugs. If this is still an issue in the latest version of Aardvark, please let us know, along with further details of how to reproduce.
When I added the Aardvark SEO tags to my layout view, the yield tag I was using in that layout stopped working.
The Yield tag itself was rendering fallback content on the page, which seems to mean that there was a clash that was causing the Aardvark SEO tags to somehow cause the section content from within {{ template_content }} to not be pulled through into the Yield tag.
Here's my layout file (the Yield tag is in the header):
And here's the corresponding Section tag from the page view file, which should be sending it's contents to the Yield tag to replace the fallback content:
{{ section:header_color }}is-lemon{{ /section:header_color }}