Skip to content

Commit

Permalink
[BUGFIX] Use different icon for blog pages defined as root
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Apr 3, 2020
1 parent 9e240bb commit 418e497
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
[
'ctrl' => [
'typeicon_classes' => [
(string) \T3G\AgencyPack\Blog\Constants::DOKTYPE_BLOG_PAGE => 'record-blog-page',
(string) \T3G\AgencyPack\Blog\Constants::DOKTYPE_BLOG_PAGE . '-root' => 'record-blog-page-root',
(string) \T3G\AgencyPack\Blog\Constants::DOKTYPE_BLOG_POST => 'record-blog-post',
],
],
Expand Down
30 changes: 30 additions & 0 deletions Resources/Public/Icons/record-blog-page-root.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'record-blog-author' => 'EXT:blog/Resources/Public/Icons/record-blog-author.svg',
'record-blog-comment' => 'EXT:blog/Resources/Public/Icons/record-blog-comment.svg',
'record-blog-page' => 'EXT:blog/Resources/Public/Icons/record-blog-page.svg',
'record-blog-page-root' => 'EXT:blog/Resources/Public/Icons/record-blog-page-root.svg',
'record-blog-post' => 'EXT:blog/Resources/Public/Icons/record-blog-post.svg',
'record-blog-tag' => 'EXT:blog/Resources/Public/Icons/record-blog-tag.svg',
'record-folder-contains-blog' => 'EXT:blog/Resources/Public/Icons/record-folder-contains-blog.svg',
Expand Down

0 comments on commit 418e497

Please sign in to comment.