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

Implemented module page template and module block template #2200

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

Daniel-KM
Copy link
Contributor

The possibility to create multiple templates for blocks is very practical. There is just a last point: let modules create templates too. For example a module can implement a specific template for browse preview, whatever the theme is.

This feature is implemented in the new version of the module BlockPlus, but it should be usable by any module.

Technically, i prefered to inject the module templates (a list of key-value pairs for path/label) inside the theme data because it is the simplest way, but it can be done in a heavy way.

@zerocrates zerocrates merged commit d979191 into omeka:develop Jun 12, 2024
5 checks passed
@zerocrates
Copy link
Member

Thanks. Letting modules provide these across all themes seems like a fine idea.

I did merge this, though one thing does occur to me now: you're merging the module templates into the theme's config... should it be the other way around, just a flipping of the arguments to array_merge_recursive? We often have themes be the highest-priority override.

@Daniel-KM Daniel-KM deleted the feature/module_template branch July 11, 2024 13:07
Daniel-KM pushed a commit to Daniel-KM/Omeka-S that referenced this pull request Jul 11, 2024
zerocrates added a commit that referenced this pull request Jul 15, 2024
Fixed injection of module templates in theme with duplicate names (fix #2200).
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