View Issue Details

IDProjectCategoryView StatusLast Update
0005312OXID eShop (all versions)2.3. Extensions (modules, themes)public2022-03-16 11:49
Reportervaidas.matulevicius Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version4.7.6 / 5.0.6 
Summary0005312: Using oxstyle tags in widget does not includes css
DescriptionUsing oxstyle tags in widget does not includes css.
Steps To ReproduceCreate module which extends widget block and adds some additional css file.
Enable this module and css style will not be included until you will add [{oxstyle}] to modules block.
TagsCSS, Smarty, Widgets
ThemeAll
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

dev_ht

2017-09-07 16:05

reporter   ~0012220

The latest Oxid 6.0 RC2 release is also affected by this bug.

Example to reproduce:

1. Extend the admin_language_edit block

    'blocks' => array(
        array('template' => 'language_edit.tpl', 'block' => 'admin_language_edit', 'file' => 'views/blocks/language_edit.tpl'),
    ),

2. Inside the extended block add the oxstyle tag

    [{oxstyle include=$oViewConf->getModuleUrl("my_mod_id", "out/src/css/my_style.css")}]

The CSS style will not be included, unless [{oxstyle}] is also added to the block.

MarcelOxid

2022-03-07 19:44

manager   ~0013788

Thank you for reporting this issue. Currently the [{oxstyle}] isn’t added by default in the admin space. So if you want to change the css you can easily add the <link>-tag with the css directly in the template, or you can use our oxstyle method to register all css files and include them with [{oxstyle}].