Giter Site home page Giter Site logo

skybrud / skybrud.imagepicker Goto Github PK

View Code? Open in Web Editor NEW
9.0 8.0 3.0 4.33 MB

Extended image picker for various versions of Umbraco.

License: MIT License

JavaScript 6.24% CSS 3.81% HTML 4.49% C# 80.64% Batchfile 0.42% Less 4.41%
image-picker grid-editor umbraco skybrud umbraco-v7 limbo umbraco-package dotnet csharp

skybrud.imagepicker's Introduction

Skybrud Image Picker GitHub license NuGet NuGet Our Umbraco

Skybrud.ImagePicker is a package for Umbraco 9 with property editors extending Umbraco's default media pickers.

Installation

The Umbraco 9 version of this package is only available via NuGet. To install the package, you can use either .NET CLI:

dotnet add package Skybrud.ImagePicker --version 3.0.0-alpha003

or the older NuGet Package Manager:

Install-Package Skybrud.ImagePicker -Version 3.0.0-alpha003

Umbraco 8
For the Umbraco 8 version of this package, see the v2/main branch instead.

Umbraco 7
For the Umbraco 7 version of this package, see the v1/main branch instead.

Features

  • Allows selecting a type converter on the data type, in which case the type converter will be used for converting the selected items from Umbraco's MediaWithCrops to a desired type.

  • Allows selecting a value type on the data type, in which case this type is used instead of Umbraco's MediaWithCrops model.

Documentation

Coming soon ;)

skybrud.imagepicker's People

Contributors

abjerner avatar jemayn avatar nikcio avatar rasmusfjord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vyn14 mirhat nikcio

skybrud.imagepicker's Issues

Possibility to overwrite default naming of labels

Hi, it would be nice if we could overwrite the default naming of the labels on the properties in config. Sometimes i use ex. the title property for alt-text, and then the default naming ("Title") is a bit confusing for the editor.

chrome_2018-10-24_09-32-25

ImagePicker broke my site

I had a site with an existing Umbraco Grid implementation, which worked fine. After installing the Skybrud.ImagePicker, none of my grids render.

When I render my node's grid property...
@(Model.Content.GetPropertyValue("genericGrid").ToString())

I get:
Skybrud.Umbraco.GridData.GridDataModel

How do get my Umbraco Grid back?

*Help wanted* Issue - ImagePicker in grid editor

Hi Anders,

First of all, great work with all the Skybrud devs you're envolved :)

I would like to ask you a couple of questions, so this is not really an issue :)

  • both ImagePicker and LinkPicker were created as an Angular Directive. It was done like that because of Angular $scope sharing and, so, allowing to use the same code as a property editor and a grid editor?

  • when using it (ImagePicker/LinkPicker) as a grid editor, the developers always need to define the render view (cshtml) and configure it in the package.manifest 'render' property? (or alternatively create a cshtml with the same name as the grid editor's view name - like 'ImagePickerGridEditor' as per your example - right?)

Thanks in advance,
And keep the excellent work ;)

Add a bit extra CSS for the list table

As a result of Umbraco's styling for .table, the list gets a double border, which looks a bit wrong. Could be fixed with adding a rule like as shown below to our stylesheet:

.SkybrudImagePickerList > .table {
    border: 0;
}

Before:
image

After:
image

Images should use ng-src instead of src

If the URL is specified using the src attribute, the browser will initially try to load the Angular expression, which obviously isn't a valid URL. We should use ng-src instead.

config not working

The following config-options is not working in the datatype when using it in non-grid-context.

  • Limit
  • Show title field
  • Title placeholder
  • Hide title
  • Hide description
  • Hide link

Multi image picker

It is currently only possible to insert a single media at a time, since you actually adding an item, which then triggers the image picker dialog.

Instead, when adding a new item, the user should be prompted by the image picker dialog initially, and an item should then be added for each selected image (or an alert should be shown if the total amount of items is greater than the limit).

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.