Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to render images that are not using mediaStore #686

Open
josephdenne opened this issue Apr 15, 2019 · 1 comment
Open

Ability to render images that are not using mediaStore #686

josephdenne opened this issue Apr 15, 2019 · 1 comment

Comments

@josephdenne
Copy link
Member

Where images are provided as a string (paths or full URLs) and are not using mediaStore it would be nice to be able to render them within the editorial interfaces.

Where a path is given it would be good to be able to provide a domain against the field in the collection schema. This allows for the use of large externally provided datasets without the need to store the domain or full path against every record.

In addition in such instances where a collection may include a set of images provided as a string in an object, it would be nice to be able to render an "image wall" under a dedicated section (e.g. "Media").

@josephdenne
Copy link
Member Author

josephdenne commented Apr 15, 2019

Example object, showing posters for a film:

Field definition in the API collection schema:

"posters": {
  "type": "Object",
  "label": "Posters",
  "comments": "Posters for the film from around the world",
  "required": false
},

Document example:

{
	"posters": [{
		"file_path": "/r6MqWtJCyybGoP5LUxqNm7q9kwb.jpg",
		"height": 3000,
		"width": 2000
	}, {
		"file_path": "/c0jCZGc0XMW1TpRP2nRCrwY3Tex.jpg",
		"height": 1778,
		"width": 1185
	}, {
		"file_path": "/g6mK7LlCD0RPLk96n6KuXDJMZbb.jpg",
		"height": 1500,
		"width": 1000
	}, {
		"file_path": "/v6ZmUEQvYDqp2FEfByBoInCq7sx.jpg",
		"height": 1500,
		"width": 1000
	}, {
		"file_path": "/zppVzoeQvds6FPTzcMww6chPIks.jpg",
		"height": 3000,
		"width": 2000
	}, {
		"file_path": "/lxFTHZHBHRXcuzR9ygpMGP1kEKr.jpg",
		"height": 1500,
		"width": 1000
	}]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants