-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.1 M2
-
Fix Version/s: 5.2 M3
-
Component/s: Seam / JSF UI, Web Common
The nuxeo tag library need an an upgrade for the outputFile and outputImage components and matching URL filters to be able to generate / handle URLs to directly access the content of a blob. Sample expected URLs are:
or
where:
- 'file' is the schema name of the blob to download
- 'content' is the field name of the blob to download
- '3' is the index of the blob to download in case 'file.content' is a complex field (optional)
- 'filename.doc' is the filename of the blob if any (optional)
Why we need a GET URL and not a js postback (like h:commandLink component):
- we will need to generate HTML tags such as <img src="/my/get/url/to/image.png" alt="image title"/> so that browsers can download blobs to be used as images (for thumbnails of content and so).
- have meaningful URL so that google can index attached files (PDF, doc, ...) to be ready the day nuxeo 5 wil be used for web content management.
We also need similar URL filters and JSF tags for the "edit online" and "pdf preview" links.
- depends on
-
NXP-1146 New URL system
- Resolved