Skip to content

[WIP] Use new template inheritance system and add new blocks - #95

Closed
clemente wants to merge 6 commits into
opencraft-release/ginkgo.1-pearsonfrom
clemente/apply-template-block-overrides
Closed

[WIP] Use new template inheritance system and add new blocks#95
clemente wants to merge 6 commits into
opencraft-release/ginkgo.1-pearsonfrom
clemente/apply-template-block-overrides

Conversation

@clemente

Copy link
Copy Markdown

This cherry-picks https://github.com/edx/edx-platform/pull/16856/commits to implement a new feature: a template can override only some blocks and use the rest of the content from the parent template (instead of being forced to copy/paste all the parent's content).
And in addition the PRs adds some named blocks that will later be used by the Pearson theme.

WIP because more blocks will come, and because https://github.com/edx/edx-platform/pull/16856/commits will be merged.

JIRA tickets: None
Discussions: None
Dependencies: None
Screenshots: None
Sandbox URL: None
Merge deadline: None

Testing instructions:

  1. Run this server with the Pearson theme
  2. Notice that the theme works
  3. Check that the blocks themselves are neutral when not using Pearson's theme

Reviewers

Author concerns: None
Settings: None

Chandrakant Gopalan and others added 3 commits December 15, 2017 00:25
This allows an overridding template from a theme to inherit from the
same corresponding standard template.

This is useful when you only want to override one or more named blocks,
but otherwise make no modifications to the standard template.

<%include file="course_about_sidebar_header.html" />

## FIXME add more blocks to simplify the template

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a ${HTML(parent.body())} in the theme template, some blocks started being visible, but not the block-inside-a-block. I'll debug it more.

@clemente

Copy link
Copy Markdown
Author

Closed in favor of starting with course_about.html only → see #96

@clemente clemente closed this Dec 22, 2017
@bradenmacdonald
bradenmacdonald deleted the clemente/apply-template-block-overrides branch January 12, 2022 01:05
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