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 #5 from Dolphiq/development
Browse files Browse the repository at this point in the history
Now it it possible to select the current item as a related item for use in (sub) menu's
  • Loading branch information
johanzandstra authored Dec 13, 2017
2 parents 4e5268d + 5a2937a commit 3af1fc4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## 1.0.4 - 2017-12-13

### Added
- Now it it possible to select the current item as a related item for use in (sub) menu's

## 1.0.3 - 2017-12-13

### Changed
Expand Down
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": "dolphiq/titleentriesfield",
"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.3",
"version": "1.0.4",
"keywords": [
"craft",
"cms",
Expand Down
11 changes: 10 additions & 1 deletion src/templates/input/elementSelect.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,16 @@ Craft.TitleElementFieldSelectInput = Craft.BaseElementSelectInput.extend(
value.linkFieldLabel = newName;
idField.val(JSON.stringify(value));
}
}
},
getDisabledElementIds: function() {
var ids = this.getSelectedElementIds();

if (this.settings.sourceElementId) {
// ids.push(this.settings.sourceElementId);
}

return ids;
},
}
);

Expand Down

0 comments on commit 3af1fc4

Please sign in to comment.