Coder Social home page Coder Social logo

skybrud / skybrud.linkpicker Goto Github PK

View Code? Open in Web Editor NEW
6.0 11.0 3.0 2.61 MB

Link picker property editor and grid editor for Umbraco.

License: MIT License

JavaScript 11.98% CSS 11.66% HTML 20.33% C# 42.84% Batchfile 0.56% Less 12.63%
link-picker grid-editor skybrud umbraco umbraco-v7 umbraco-v8 umbraco-package limbo linkpicker links

skybrud.linkpicker's People

Contributors

abjerner avatar chestercampbellam avatar nikcio avatar rasmusfjord avatar tnielsenskybruddk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skybrud.linkpicker's Issues

Problems with LeBlender

Hi Bjerner,
i use Skybrud.LinkPicker 1.1.1. If i add a linkpicker datatype to LeBlender and use it on a gridelement, it will not save the data on the save event.

LinkPicker data binding in the backend

Hi @abjerner ,

I was trying to reuse your LinkPicker editor in a custom view but then when the data is sent to the backend to be saved, the data isn't correctly 'binded' for the 'LinkPickerList' object.
I've confirmed that the data is being passed on the Http Post to the backend and I've also confirmed that the "Title" property is correctly set, but the 'LinkPickerItem[] Items' isn't.

In the example above, "My Title" is correctly set in the backend, but the item array is shown as an empty LinkPickerItem[]:

"title": "My Title",
"items": [{
	"id": 1061,
	"name": "history",
	"url": "http://example.dev/history/",
	"target": "_self",
	"mode": "content"
}],
"count": 1

Can you help me to understand why this is happening?

PS: The functionality in the backoffice is working as expected :)

Thank you very much.
Best Regards

LinkPickerItem should have constructors for manual initialization

Right now the LinkPickerLink class has a single constructor taking an instance of JObject. This works fine when you're only using the property editor.

But in some situations, it might be ideal to initialize an instance of LinkPickerLink manually - eg. a constructor that automatically populates the properties from an instance of IPublishedContent. Or another constructor with parameters matching all available properties on LinkPickerLink.

GetLinkPickerItem should never return null

If a link has been selected (single picker) or the list is empty (multi picker), the extension method GetLinkPickerItem will return null. Ideally it should return an empty item so we don't have to check whether it isn't null as well as checking IsValid.

If the method returns an empty item, we only need to check IsValid ๐Ÿ˜„

Feature proposal - config nodetree

It would be quite cool to have a config-option to control the content-tree. Like the xpath option in the MNTP. Ex. if i have a multisite solution, it would be cool to only see nodes from the current site (ex. $current/ancestor-or-self::*[@Level = 2])

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.