Is there a way to get the filename or even better an image preview using the "Name template"?
I have a simple doctype, that only contains a media picker.
When using the media picker in the "Name template" i get something like "umb://media/29bf4d2ca5384c8f99f0411fde640d17".
It would be cool with a small preview or simply the file name "image.jpg"
Media url or preview backend
Is there a way to get the filename or even better an image preview using the "Name template"?
I have a simple doctype, that only contains a media picker. When using the media picker in the "Name template" i get something like "umb://media/29bf4d2ca5384c8f99f0411fde640d17".
It would be cool with a small preview or simply the file name "image.jpg"
Hi Claus,
You can create a custom preview for the row.
Our documentation for it is currently lacking, but Nik posted a couple of steps on another forum thread...
https://our.umbraco.org/projects/backoffice-extensions/stacked-content/stacked-content-feedback/89104-documentation#comment-281660
Hope this helps?
Cheers,
- Lee
Stupid me. I was fully aware of the custom preview... I just didn't think. I guess its friday.
Thanks, H5YR. Awesome Package.
And it works like a charm... Of course :)
Does any of you have a simple example of a custom preview ?
I've tried @Model.Content but I get an error looking like this:
And this is my code:
Hi Sebastian
You don't have to write Model.Content, when you use UmbracoViewPage. You can just write Model, like Model.Name, Model.Url etc.
I do it like this
Remember to:
Oh, yes. That works. Thank you
Do you know if it's possible to, somehow, get a CSS file loaded so you don't have to do all that inline styling ?
I figured this out on my own.
Just create a manifest in
~/App_Plugins/WhateverYouWant/
Make it look like this:
And add the
styles.css
to the same folderis working on a reply...