Hey,
maybe it’s obvious but I can’t find a simple way to select mp4/webm/ogv in Neos Inspector.
No problem to upload the videos to the server. But I can’t select them with default nodeType with type: Neos\Media\Domain\Model\ImageInterface.
Of corse videos are no Images but Media.
##AssetInterface
Is AssetInterface the right one. The documentation is quite small about(AssetInterface). I can’t figure out if it would work with this. There would be a lot of possibilities to do some buggy-code and because of this think it is the wrong Interface at all.
Maybe someone could give an recommendation if it is the right.
Or is there some docu about I have overlooked?
Aim: I would like to have at the end some source-code like:
Glad your found a way. The LinkEditor can work fine if there’s only one asset to be selected, however it doesn’t allow you to open the media library to find the asset. For that the AssetEditor is better suited.
After looking through pages and pages, I don’t get why it has to be so difficult to find the right syntax to render an asset like this {f:uri.resource(resource: asset.resource)}, thanks for the info !
I tried to see if I can use convertUris, or using a Tag and wish it would handle the object, but couldn’t get it to work.
Also I used <f:debug> to debug the asset object, but the debug only showed me a single line of the object type, didn’t help much. Or maybe I don’t know how to use the debugger effectively. So, I didn’t know what properties I could get from the asset object in the first place.
And then I decided to search the forum, since google searches are not very effective for Neos.
Gotcha, well glad you found it at least. Yeah Google is not be best friend for discuss, guessing not enough external links to it.
convertUris can actually be used for it with asset://asset-identifier, however usually not the easiest way.
A great tip is to look more at the source code of the core and the demo site, don’t be afraid to dive in, you’ll learn a lot and it’s neatly structured and not a big mess like other source codes sometimes are.