It may be better to create this as a report template. It could do the calculaction more efficiently. We’d need to allow the package listing in safe mode first, today we only allow accessing name and label for a content view. If we made access to the content_view_versions
, we could then list packages for a specific content view version.