Skip to content

Commit

Permalink
Use entries instead of sections
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Feb 26, 2024
1 parent 827237a commit daec68f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SeoFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function init()
parent::init();
self::$plugin = $this;

/** @phpstan-ignore-next-line */
Sprig::bootstrap();

$this->setComponents([
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_includes/_schema/_sections.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% import "_includes/forms" as forms %}

{% set allSections = craft.app.sections.getAllSections() %}
{% set allSections = craft.app.entries.getAllSections() %}
{% if allSections|length %}
<table class="data fullwidth collapsible">
<thead>
Expand Down

0 comments on commit daec68f

Please sign in to comment.