View Issue Details

IDProjectCategoryView StatusLast Update
0005042OXID eShop (all versions)2.3. Extensions (modules, themes)public2022-01-31 14:54
ReporterJaroslavHerber Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.6.6 revision 54646 
Fixed in Version6.1.0 
Summary0005042: metadata-blocks doesn't support multiple themes
DescriptionIf you want to overwrite a block in your module, you need to put your block-file into /modules/<mymodule>/out/blocks/...
So there is only one blocks-folder for all themes. Therefore you cant't create different block-files for different themes to overwrite the same block.

Maybe you can expand the metadata-blocks-array with a key 'shopid' or 'theme':

'blocks' => array(
  array('template' => 'page/search/search.tpl', 'block' => 'search_results', 'file' => 'search_results.tpl', 'theme' => 'second_theme')
),...
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Relationships

related to 0005023 resolvedmantas.vaitkunas Active theme id is not accessible from template. 
related to 0005176 assignedSvenBrunk As a developer i want to define the file-structure in a module by myself 

Activities

svetlana

2014-03-28 10:02

reporter   ~0009730

waiting for the PO decision.

SvenBrunk

2022-01-31 14:54

administrator   ~0013611

This was made available in metadata version 2.1

https://docs.oxid-esales.com/developer/en/latest/development/modules_components_themes/module/skeleton/metadataphp/amodule/blocks.html#theme-specific-blocks