Skip to content

Commit

Permalink
Fix when Neo isn’t installed. Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrowe committed Apr 11, 2023
1 parent 7a74815 commit ad9e4df
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 43 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Block Usage Changelog

## 1.0.1 - 2023-03-11

### Fixed

- Fixed bug when Neo wasn't installed. [Closes #1](https://github.com/simplygoodwork/craft-block-usage/issues/1)

## 1.0.0 - 2022-11-21

### Added

- Initial release
82 changes: 41 additions & 41 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "simplygoodwork/craft-block-usage",
"description": "See how Matrix and Neo blocks are being used across your sections.",
"type": "craft-plugin",
"version": "1.0.0",
"keywords": [
"craft",
"cms",
"craftcms",
"craft-plugin",
"block usage"
],
"support": {
"docs": "https://github.com/simplygoodwork/craft-block-usage/blob/master/README.md",
"issues": "https://github.com/simplygoodwork/craft-block-usage/issues"
},
"license": "MIT",
"authors": [
{
"name": "Good Work",
"homepage": "https://simplygoodwork.com"
}
],
"require": {
"craftcms/cms": "^4.0.0"
},
"autoload": {
"psr-4": {
"simplygoodwork\\blockusage\\": "src/"
}
},
"extra": {
"name": "Block Usage",
"handle": "block-usage",
"developer": "Good Work",
"developerUrl": "https://simplygoodwork.com",
"documentationUrl": "https://github.com/simplygoodwork/craft-block-usage/blob/master/README.md",
"changelogUrl": "https://github.com/raw/simplygoodwork/craft-block-usage/master/CHANGELOG.md",
"components": {
"blockUsageService": "simplygoodwork\\blockusage\\services\\BlockUsageService"
},
"class": "simplygoodwork\\blockusage\\BlockUsage"
"name": "simplygoodwork/craft-block-usage",
"description": "See how Matrix and Neo blocks are being used across your sections.",
"type": "craft-plugin",
"version": "1.0.1",
"keywords": [
"craft",
"cms",
"craftcms",
"craft-plugin",
"block usage"
],
"support": {
"docs": "https://github.com/simplygoodwork/craft-block-usage/blob/master/README.md",
"issues": "https://github.com/simplygoodwork/craft-block-usage/issues"
},
"license": "MIT",
"authors": [
{
"name": "Good Work",
"homepage": "https://simplygoodwork.com"
}
],
"require": {
"craftcms/cms": "^4.0.0"
},
"autoload": {
"psr-4": {
"simplygoodwork\\blockusage\\": "src/"
}
},
"extra": {
"name": "Block Usage",
"handle": "block-usage",
"developer": "Good Work",
"developerUrl": "https://simplygoodwork.com",
"documentationUrl": "https://github.com/simplygoodwork/craft-block-usage/blob/master/README.md",
"changelogUrl": "https://github.com/raw/simplygoodwork/craft-block-usage/master/CHANGELOG.md",
"components": {
"blockUsageService": "simplygoodwork\\blockusage\\services\\BlockUsageService"
},
"class": "simplygoodwork\\blockusage\\BlockUsage"
}
}
2 changes: 0 additions & 2 deletions src/templates/entries.twig
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@

<hr>

{% set neoBlocksOwners = craft.neo.blocks({ typeId: blockId }).all()|map(b => b.ownerId) %}

{% if not blockEntries.entries|length %}

<p>No entries use this block</p>
Expand Down

0 comments on commit ad9e4df

Please sign in to comment.