Skip to content

Commit

Permalink
changed changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-1JMR4SS\anuba committed Oct 7, 2018
1 parent c85885f commit b0c2eff
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
18 changes: 15 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.1.1 - 2018-10-6
### Bugfix

## 1.1.2 - 2018-10-07
### Fixed
- Fixed a wrong translation

### Changed
- Autofocus new popup window when relabeling a field
- Changed way to receive errors from elements in Twig please use `craft.relabel.gerErrors(element)` now

### Deprecated
- included the `secondred\relabel\Variable.php` as behavior to `CraftVariable` rather than a global to Twig

## 1.1.1 - 2018-10-06
### Fixed
- Fixed a bug that prevents field layouts by rendered via ajax request to render properly

## 1.1.0 - 2018-10-6
## 1.1.0 - 2018-10-06
### Added
- Displaying Relabels for error messages
- Release in plugin store
Expand Down
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# relabel plugin for Craft CMS 3.x
# Relabel Plugin for Craft CMS 3.x


<img src="resources/img/icon.svg" alt="drawing" width="200"/>
Expand All @@ -21,6 +21,11 @@ To install the plugin, follow these instructions.

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Relabel .

## Basic Hints

Relabel creates a custom Database table that stores the new labels. Default Craft fields are not touched in any way.
The strings are replaced by JavaScript so you can remove/uninstall the plugin whenever you want without breaking changes in your Control Panel.


## Usage

Expand Down Expand Up @@ -56,3 +61,19 @@ Event::on(
}
);
```

Currently supported Element Types are
- craft\elements\Entries
- craft\elements\Assets
- craft\elements\GlobalSets
- craft\elements\Categories
- craft\elements\Users

## Register custom labels after Ajax requests

Crafts entries are able to change the field layout by changing the entry type, if you want to be able to change the field layout for a custom element type via Javascript as well you need to include these lines

```PHP
$labelsForLayout = Relabel::getService()->getAllLabelsForLayout($layout->id);
Craft::$app->getView()->registerJs('Craft.relabel.changeEntryType(' . json_encode($labelsForLayout) . ');');
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "anubarak/craft-relabel",
"description": "Relabel Plugin Craft",
"type": "craft-plugin",
"version": "1.1.1",
"version": "1.1.2",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit b0c2eff

Please sign in to comment.