-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Introduce Site Settings Editor (#148)
Introduce site settings for the blog_example as demonstration References: TYPO3-Documentation/Changelog-To-Doc#1026 Release: main
- Loading branch information
Showing
8 changed files
with
120 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
categories: | ||
BlogExample: | ||
label: 'Blog Example' | ||
BlogExample.templates: | ||
label: 'Templates' | ||
parent: BlogExample | ||
BlogExample.pages: | ||
label: 'Pages' | ||
parent: BlogExample | ||
BlogExample.layout: | ||
label: 'Layout' | ||
parent: BlogExample | ||
BlogExample.settings: | ||
label: 'Settings' | ||
parent: BlogExample | ||
|
||
settings: | ||
blogExample.templateRootPath: | ||
label: 'Templates' | ||
category: BlogExample.templates | ||
description: 'Path to template root' | ||
type: string | ||
default: 'EXT:blog_example/Resources/Private/Templates/' | ||
blogExample.partialRootPath: | ||
label: 'Partials' | ||
category: BlogExample.templates | ||
description: 'Path to partial root' | ||
type: string | ||
default: 'EXT:blog_example/Resources/Private/Partials/' | ||
blogExample.layoutRootPath: | ||
label: 'Layouts' | ||
category: BlogExample.templates | ||
description: 'Path to layout root' | ||
type: string | ||
default: 'EXT:blog_example/Resources/Private/Layouts/' | ||
blogExample.storagePid: | ||
label: 'Default storage PID' | ||
category: BlogExample.pages | ||
description: 'Folder that stores all blogs, blog-posts and comments' | ||
type: int | ||
default: 0 | ||
blogExample.editorUsergroupUid: | ||
label: 'Frontend admin user group UID' | ||
category: BlogExample.settings | ||
description: 'Enter the uid of the front end user group that should be allowed to edit blogs and post in the frontend in the admin plugin. ' | ||
type: int | ||
default: 0 | ||
blogExample.postsPerPage: | ||
label: 'Posts per page' | ||
category: BlogExample.settings | ||
description: 'How many posts should be displayed per page of pagination?' | ||
type: int | ||
default: 3 | ||
blogExample.defaultGravator: | ||
label: 'Default gravator icon' | ||
category: BlogExample.layout | ||
description: 'This icon is displayed for a comment if the email address of the commentary is not registered. ' | ||
type: string | ||
default: 'EXT:blog_example/Resources/Public/Icons/default_gravatar.gif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
categories: | ||
BlogExample.rss: | ||
label: 'RSS feed' | ||
parent: BlogExample | ||
|
||
settings: | ||
blogExampleRss.page_type: | ||
label: 'RSS page type' | ||
category: BlogExample.rss | ||
description: 'If the default RSS page type number (778) conflicts with your setup, you can override this setting here. ' | ||
type: int | ||
default: 778 | ||
blogExampleRss.title: | ||
label: 'Title of the RSS feed' | ||
category: BlogExample.rss | ||
description: 'Path to template root' | ||
type: string | ||
default: 'The RSS feed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module.tx_blogexample { | ||
view { | ||
# cat=module.tx_blogexample/file; type=string; label=Path to template root (BE) | ||
templateRootPath = EXT:blog_example/Resources/Private/Backend/Templates/ | ||
# cat=module.tx_blogexample/file; type=string; label=Path to template partials (BE) | ||
partialRootPath = EXT:blog_example/Resources/Private/Partials/ | ||
# cat=module.tx_blogexample/file; type=string; label=Path to template layouts (BE) | ||
layoutRootPath = EXT:blog_example/Resources/Private/Backend/Layouts/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# Module configuration | ||
module.tx_blogexample { | ||
settings < plugin.tx_blogexample.settings | ||
persistence < plugin.tx_blogexample.persistence | ||
view < plugin.tx_blogexample.view | ||
view { | ||
templateRootPaths.10 = {$module.tx_blogexample.view.templateRootPath} | ||
partialRootPaths.10 = {$module.tx_blogexample.view.partialRootPath} | ||
layoutRootPaths.10 = {$module.tx_blogexample.view.layoutRootPath} | ||
} | ||
} |