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

Template path without function #24

Closed
harp71 opened this issue Apr 16, 2018 · 2 comments
Closed

Template path without function #24

harp71 opened this issue Apr 16, 2018 · 2 comments

Comments

@harp71
Copy link

harp71 commented Apr 16, 2018

Hi, im trying to set the root-path for Layout, Templates and Partials to a fileadmin-folder. But my settings are ignored. I tried to set them in constants and setup, TS-Object-Browser shows the path correctly, but the new location is ignored?

Looks like this the in constants
plugin {
tx_owlslider {
...
view {
templateRootPath = fileadmin/site/templates/owlslider/Private/Templates/
partialRootPath = fileadmin/site/templates/owlslider/Private/Partials/
layoutRootPath = fileadmin/site/templates/owlslider/Private/Layouts/
}
...
}
}

Looks like this in the TS-Object-Browser Setup:
[plugin]
...
[tx_owlslider]
[view]
[templateRootPath] = fileadmin/site/templates/owlslider/Private/Templates/
[partialRootPath] = fileadmin/site/templates/owlslider/Private/Partials/
[layoutRootPath] = fileadmin/site/templates/owlslider/Private/Layouts/

If i make changes in fileadmin-files nothing happens, if i change files in the EXT-folders, changes work. As if i never changed the path ...

Can somebody please help me figuring out whats wrong?

TYPO3 8.7.12
owl_slider 2.5.2

Thanks,
harP

@ghost
Copy link

ghost commented Apr 16, 2018

overwrite the template like this:
plugin.tx_owlslider {
view {

templateRootPaths >
templateRootPaths {
  0 = EXT:owl_slider/Resources/Private/Templates/
  1 = yourpath
}
partialRootPaths >
partialRootPaths {
  0 = EXT:owl_slider/Resources/Private/Partials/
  1 = yourpath
}
layoutRootPaths >
layoutRootPaths {
  0 = EXT:owl_slider/Resources/Private/Layouts/
  1 = yourpath
}

}

This will work

@harp71
Copy link
Author

harp71 commented Jun 4, 2018

THX a lot

@ghost ghost closed this as completed Dec 18, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant