Releases: yii2-bridge/core
Releases · yii2-bridge/core
Admin panel fixes
French translations and minor updates
Overriding layout and views
- Added
$layout
property forBridgeModule
. If you need, you can install your own layout or edit existing. #43 - Now, in your project config you can override bridge views. For example. #45
- The submenu now also becomes highlighted if it is active. #42
- Added a caret icon and animation to menu items which have a sub-menu. #40
- Fixed bug with migration. #46
- Fixed missing translation in dropdown menu. #39
Patch release
- Fixed bug with
extraAssets
- Fixed bug with method
setIsAdmin
inbridge
component
Patch release
- Changed the order of the execution of migration commands
- Removed unused packages
- Fixed bug when extend
ImageColumn
andTitledImageColumn
classes - Fixed bug in
I18n
module - Fixed bug in
MetaTagsComponent
- Fixed bug when delete file via
fileUpload()
orimageUpload()
fields
Hotfix
- Fixed bug when use
ImageColumn
andTitledImageColumn
- Fixed bug when get og:image in
MetaTagsComponent
- Fixed bug in
MetaTags
when use translation model
Patch release
- Added default options for
richTextArea
field ofActiveFiled
. By default, theallowedContent
andforcePasteAsPlainText
options are enabled - Fixed bug
imageUpload
andfileUpload
fields ofActiveFiled
- Fixed bug when delete image in
Settings
- Updated index in
meta_tag_translations
table - Fixed bug when get
Settings
- Fixed close sub-menu when menu is narrow
- Fixed bug when generate rules for
TINYINT
column - Optimized queries in the preparation of meta-tags
Deprecation notice ⚠️
Remove the imageColumn
attribute from the configuration MetaTagBehavior
.
When calling Yii::$app->metaTags->registerModel()
, simply specify as the third parameter the name of the image loading behavior (BridgeUploadImageBehavior
).
The default name is imageUpload
.
Example: Yii::$app->metaTags->registerModel($model, 'metaTag', 'imageUpload')
Fixed bugs with Settings
- Fixed clear cache
Setting
andSettingGroup
- Fixed create setting translations if they don't exist
- Fixed bug
Invalid path alias: @/Bridge/Core/Controllers
when run commandphp yii
Settings translation and caching
- The
Settings
value is now multilingual. By default it gets the value for the current language.
If you want to get a value for a specific language, you can simply specify the language code.
For example:Settings::group('test-group')->get('test-setting')->getTranslation('en-RU')
. - Caching
Settings
. By default, settings caching is enabled. If you want to disable caching, add the'settingsCaching' => false
to the admin module configuration.
Also, you can override the name of the cache key settings in the admin module configuration.
For example:'settingsCacheKey' => 'my_settings'
- Web analytics services (
google-analytics-key
andyandex-metrika-key
) are registered everywhere except the admin area. Earlier they were also registered in the admin panel, which spoiled the statistics. - Added the "Clear cache" button, which clears all caches.
- In
TranslationBehavior
, you can now specify the cache key, which makes it possible to retrieve the translation data from the cache.
Earlier we received data in approximately this way:$model->translation->title
.
Now, to cache the translation data, it is enough to specify the unique cache key with the second parameter of thegetTranslation()
method:$model->getTranslation(null, 'post-' . $model->id)->title
. (with the first argument, we set null to get the value for the current language). - New translations for Russian and Kazakh languages have been added.
- Also fixed minor bugs.
Fix namespaces
Merge pull request #12 from altynbek07/fix-controller-namespace fix(BridgeModule): controller namespace