songyinghao / Vokseverk.ImageHotspot

Hotspot Property Editor for Umbraco 7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Hotspot Property Editor for Umbraco 7

This is an attempt to provide similar functionality to what was previously available with the uComponents ImagePoint data type in Umbraco, versions 4 and 6.

This one's just called “Image Hotspot” because that's what our clients call it when they ask for this kind of thing :-)

PLEASE NOTE: This may not at all be production ready for your particular use, but if you want to try it out there's an Umbraco package available on the releases page.

What does it look like?

Currently, it looks like this:

Configuration:

DataType Configuration

DataType Configuration


Property editor:

Property editor with variant themes

Property editor with variant themes

("Theme" just defines the color of the Hotspot - all four variations shown above)


Property Data

JSON Data

JSON Data

The hotspot coordinate is saved both as exact pixel values and as percentage values, along with the image's path and width & height.


TODO

  • Get imageSrc from a mediapicker value of some sorts (e.g. recursively look for umbracoFile as the uComponents data type did)
  • Add configuration prevalue for the width used in the backoffice
  • Rename Theme config to Hotspot Color (or similar)
  • Add configuration prevalue for theme
  • Build script

Credits

About

Hotspot Property Editor for Umbraco 7


Languages

Language:JavaScript 38.0%Language:XSLT 23.1%Language:HTML 14.6%Language:Shell 13.2%Language:CSS 11.1%