View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005042 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2013-04-04 10:06 | 2022-01-31 14:54 |
Reporter | JaroslavHerber | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.6.6 revision 54646 | ||||
Fixed in Version | 6.1.0 | ||||
Summary | 0005042: metadata-blocks doesn't support multiple themes | ||||
Description | If 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') ),... | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0005023 | resolved | mantas.vaitkunas | Active theme id is not accessible from template. |
related to | 0005176 | assigned | SvenBrunk | As a developer i want to define the file-structure in a module by myself |
|
waiting for the PO decision. |
|
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 |