Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docu for changing default template via root paths #91

Closed
medarob opened this issue Feb 7, 2020 · 1 comment · Fixed by #202
Closed

add docu for changing default template via root paths #91

medarob opened this issue Feb 7, 2020 · 1 comment · Fixed by #202
Labels
enhancement New feature or request help wanted Community help Skill: documentation

Comments

@medarob
Copy link
Contributor

medarob commented Feb 7, 2020

Feature Request

Maybe it's possible add the following to the documentation if that can be used and there are no drawbacks. In the current documentation there is a "how-to" change or add an existing template section (Create a new theme or adapt an existing one).

I think it's missing the explanation that it's also possible to change the default templates via adpating the root paths, for example add this to your own setup.typoscript extension:

page {
	1365499 = FLUIDTEMPLATE
	1365499 {
		templateRootPaths {
			150 = EXT:my-ext/Resources/Private/cookieman/Templates/{$plugin.tx_cookieman.settings.theme}/
		}

		partialRootPaths {
			150 = EXT:my-ext/Resources/Private/cookieman/Partials/
		}

		layoutRootPaths {
			150 = EXT:my-ext/Resources/Private/cookieman/Layouts/
		}
	}
}

That way, you don't need to add cookieman-theme.css and cookieman-theme.js to your own theme because the default files in EXT:cookieman are used.

Not sure if there are any disadvantages to this approach? Any recommendations?

@ghost
Copy link

ghost commented Feb 10, 2020

That's a good idea.
I suggest adding a section "Adapting default themes" in front of https://docs.typo3.org/p/dmind/cookieman/master/en-us/Configuration/Customization/Index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Community help Skill: documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant