diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2768fd..a8951a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,10 @@
# Changelog
+## 1.0.3 - 2017-12-13
+
+### Changed
+- Changed the component description
+- New icon
+- Documentation updated
## 1.0.2 - 2017-06-27
- Fixes issues with the field type when used in Matrix fields
diff --git a/README.md b/README.md
index ca9c30f..be6036d 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,9 @@ To install the Title Entries Field type, follow these steps:
Title Entries Field plugin works on Craft 3.x.
+### Example of the Title Entries Field in action
+![Screenshot](resources/screenshots/screenshot1.png)
+
## Using the Title Entries Field
You can use the field as a normal Entries field type but give the end user the possibility to change te label for each relation/link.
diff --git a/composer.json b/composer.json
index 851ae55..5ad58dd 100644
--- a/composer.json
+++ b/composer.json
@@ -1,8 +1,8 @@
{
"name": "dolphiq/titleentriesfield",
- "description": "Craft plugin that provides a new field type that works like an Entries field type but offers users an easy way to set a different title for the relation than the related page title.",
+ "description": "Offers users a field type with an easy way to set a different title for the relation than the related page title. Useful in menus, submenus or related lists if you are linking to other content but want to use shorter or different titles in the lists.",
"type": "craft-plugin",
- "version": "1.0.2",
+ "version": "1.0.3",
"keywords": [
"craft",
"cms",
@@ -10,6 +10,10 @@
"craft-plugin",
"link",
"linkfield",
+ "menu",
+ "entry",
+ "item",
+ "link",
"craft3"
],
"license": "MIT",
@@ -21,7 +25,7 @@
}
],
"require": {
- "craftcms/cms": "~3.0.0-beta.1"
+ "craftcms/cms": "^3.0.0-RC1"
},
"autoload": {
"psr-4": {
@@ -34,7 +38,7 @@
"schemaVersion": "1.0.0",
"developer": "Dolphiq",
"developerUrl": "https://dolphiq.nl/",
- "description": "Craft plugin that provides a new field type that works like an Entries field type but offers users an easy way to set a different title for the relation than the related page title.",
+ "description": "Offers users a field type with an easy way to set a different title for the relation than the related page title. Useful in menus, submenus or related lists if you are linking to other content but want to use shorter or different titles in the lists.",
"hasCpSettings": false,
"hasCpSection": false,
"documentationUrl": "https://github.com/Dolphiq/craft3-plugin-title-entries-field/blob/master/README.md",
diff --git a/resources/screenshots/screenshot1.png b/resources/screenshots/screenshot1.png
new file mode 100644
index 0000000..a261737
Binary files /dev/null and b/resources/screenshots/screenshot1.png differ
diff --git a/src/TitleEntriesFieldPlugin.php b/src/TitleEntriesFieldPlugin.php
index 7f96d51..2ee5e97 100644
--- a/src/TitleEntriesFieldPlugin.php
+++ b/src/TitleEntriesFieldPlugin.php
@@ -50,6 +50,8 @@ public function init()
parent::init();
+ // var_dump( Craft::$app->getFields());
+
Craft::$app->getView()->hook('cp.elements.titleElementsFieldElement', function (&$context) {
if (! isset($context['element'])) {
return null;
diff --git a/src/icon.svg b/src/icon.svg
index c28b5f8..6aa536f 100644
--- a/src/icon.svg
+++ b/src/icon.svg
@@ -1,2 +1,53 @@
-
\ No newline at end of file
+