Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from Dolphiq/development
Browse files Browse the repository at this point in the history
Updated item and documentation
  • Loading branch information
johanzandstra authored Dec 13, 2017
2 parents fe05e25 + fed3833 commit 4e5268d
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"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",
"craftcms",
"craft-plugin",
"link",
"linkfield",
"menu",
"entry",
"item",
"link",
"craft3"
],
"license": "MIT",
Expand All @@ -21,7 +25,7 @@
}
],
"require": {
"craftcms/cms": "~3.0.0-beta.1"
"craftcms/cms": "^3.0.0-RC1"
},
"autoload": {
"psr-4": {
Expand All @@ -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",
Expand Down
Binary file added resources/screenshots/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/TitleEntriesFieldPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
53 changes: 52 additions & 1 deletion src/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e5268d

Please sign in to comment.