Skip to content

[CMS PR 35874] Move custom files in core templates to media folder on update#5

Merged
dgrammatiko merged 2 commits intodgrammatiko:4.1-dev-child-templatesfrom
richard67:4.1-dev-dgrammatiko-child-templates-mod-2
Oct 22, 2021
Merged

[CMS PR 35874] Move custom files in core templates to media folder on update#5
dgrammatiko merged 2 commits intodgrammatiko:4.1-dev-child-templatesfrom
richard67:4.1-dev-dgrammatiko-child-templates-mod-2

Conversation

@richard67
Copy link
Copy Markdown

@richard67 richard67 commented Oct 22, 2021

Pull Request for joomla#35874 .

Summary of Changes

This is how I would do it with the custom files.

I'd move them and not copy because this is open to any later possible change for the "Folder::delete" to delete folders on update only if they are not empty, like it was discussed a while ago e.g. with Brian T. in some other issue or PR in the CMS repo.

Feel free to change that if you thing copying is the safer way, as those files and folder will be deleted anyway at the end and for the intermediate time it might be safer to keep the old one e.g. due to cache issues or whatever.

I've also included a "js" folder for the Atum template even if the core doesn't have that, but a user might have created that for some custom JS.

Feel free to remove that if you don't like it.

And of course you can change other things too on my proposal, as at the end it is your PR where it goes in.

I haven't tested it yet but it should work 😄

@dgrammatiko dgrammatiko merged commit 06edcdc into dgrammatiko:4.1-dev-child-templates Oct 22, 2021
@dgrammatiko
Copy link
Copy Markdown
Owner

Yay, thanks!!!

@richard67 richard67 deleted the 4.1-dev-dgrammatiko-child-templates-mod-2 branch October 22, 2021 18:21
dgrammatiko pushed a commit that referenced this pull request Feb 21, 2023
Update dev to the latest version
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

Successfully merging this pull request may close these issues.

2 participants