GithubHelp home page GithubHelp logo

tmsdev / tms.select Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 28 KB

Select nodes instead of searching via reference editor in Neos CMS.

License: MIT License

PHP 100.00%
neoscms select selectbox nodedata datasource usability

tms.select's People

Contributors

jobee avatar jonnitto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jonnitto

tms.select's Issues

feature: Group By a Property Name

I'd love to use GroupBy a Property.

groupBy: 'Your.Package:GroupType' # If it's just a parent nodetype
groupByPropertyName: 'category'   # In addition to `groupBy`, if you'd like to group by a reference field

If only groupByPropertyName is set, it will group the Nodes only by Property maybe?

as discussed @jobee

Make references allow single select

The idea of this Issue is to have a property of the "references" type and allowing a singular choice (multiple: false|null).
To facilitate switching between singular and multiple selection afterwards.

Current Problem: Within a nodeType, when type is set to type: references and it is not multiple: true, when selecting a single entry, it doesn't apply the changes.

I will provide a snippet, if anything is unclear or needs more details, please let me know.

Thanks for the hard work and any further support is much appreciated.

 categories:
       type: references
       ui:
         label: News Category
         inspector:
           group: newssettings
           editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
           editorOptions:
             dataSourceIdentifier: 'tms-select-nodedata'
             dataSourceDisableCaching: true
             #multiple: true
             dataSourceAdditionalData:
               nodeTypes: ['Foo.Bar:Tag.Category']
               #startingPoint: /sites

feature: Hide current Node

An option to hide the current Node would be awesome.
For example we have a Document.News where you can add others Document.News as related News.
Here i'd like to hide the current Document so no relations to the current Node are possible.
@jobee

BUG: Tms.Select does not respect dimensions

Looks like Tms.Select does not respect dimensions.

With the classic references i can only see and select Nodes which exist in the current Dimension - makes sense.

After switching to Tms.Select I can see and select Nodes which do not exist in this Dimension.
Even the Titles do not get translated.
So it looks like the "default dimensions" are used @jobee?

Bug: Filter/Search remains active after selecting a Node

If you filter by keyword and add a Node, the filter remains active and can't be removed.

Lets assume we have the following Elements available

  • Apple
  • Pear
  • Orange

How to reproduce:

  1. Search for "Ora" and select the "Orange" from the filtered list
  2. Click again in the searchfield - you will see "No matches found"
    Looks like the "search-filter" remains active and do not get cleared.

@jobee

No startingPoint should respect actual site instead of /sites

If no startingPoint is set, the RootNode /sites is used as startingPoint.
This leads to unwanted effects in a multi-site setup as linking and refernces always use the actual site as startingPoint.
I can't find a way to set the startingPoint to the currently active site.

Changing the RootNode to the actual site would fix the issue: https://github.com/tmsdev/Tms.Select/blob/master/Classes/DataSource/NodeDataDataSource.php#L103

@jobee we already discussed this in Slack โ˜๏ธ

Make data source results sortable

By default, the Flow query will sort the results by index (position in nodetree).
We need at least two more arguments to make sorting work.

dataSourceAdditionalData:
  sortByProperty: 'title'
  sortOrder: 'ASC'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.