-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: v3.12.0-alpha.10 crash (add template redirects) (#186)
- Loading branch information
1 parent
0cbb84e
commit ca1366b
Showing
9 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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 @@ | ||
{% extends "a2cps_cms/templates/fullwidth.html" %} |
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 @@ | ||
{% extends "a2cps_cms/templates/standard.html" %} |
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,35 @@ | ||
# Upgrade Project | ||
|
||
## for Core-CMS v3.12 | ||
|
||
### Redirect Deprecated Templates | ||
|
||
**If** the custom project directory: | ||
|
||
- has `templates/standard.html` or | ||
- has `templates/fullwidth.html` or | ||
- has `templates/home.html` | ||
|
||
Then: | ||
|
||
1. Copy the templates to become deprecated templates: | ||
- from `custom_project_dir/templates` | ||
- to `custom-project-dir/templates` | ||
|
||
> **Warning** | ||
> The name `custom_project_dir` **must** match the old name as it was, including dashes. | ||
2. Edit the deprecated templates to extend the new templates e.g. | ||
|
||
```django | ||
{% extends "custom_project_dir/templates/standard.html" %} | ||
``` | ||
3. Update `settings_custom.py` to support deprecated templates: | ||
```diff | ||
('custom_project_dir/templates/standard.html', 'Standard'), | ||
('custom_project_dir/templates/fullwidth.html', 'Full Width'), | ||
+ ('custom-project-dir/templates/standard.html', 'DEPRECATED Standard'), | ||
+ ('custom-project-dir/templates/fullwidth.html', 'DEPRECATED Full Width'), | ||
``` |
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 @@ | ||
{% extends "frontera_cms/templates/fullwidth.html" %} |
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 @@ | ||
{% extends "frontera_cms/templates/home.html" %} |
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 @@ | ||
{% extends "frontera_cms/templates/standard.html" %} |
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