In Plone 4, I have a custom Dexterity content type that has a NamedBlobFile field called audio_artifact. When using the default edit view to edit the type, I see URLs like this:
What's going on here? I'm familiar with Zope 3 resources in general, but here it looks the widget resource is being passed the @@download view as a parameter. Is that correct? Or am I just confused. I suspect the latter.
++something++
is a traversal namespace, so it's not a resource per se, ++resource++
is instead another namespace. Namespaces look up custom namespace handlers, which are given the rest of the item name.
In this case the widget
namespace handler is given the name of the widget, forms.widgets.audio_artifact
, and it will use this to look up that widget on the add form.
@@download
is a view on the widget, that enables you to download the file in the widget. For images there is also a view that allows you to get thumbnails etc.
++widget++form.widgets.audio_artifact traverses to a widget on the @@edit form, and then @@download is a view of that widget.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With