[MGNLDAM-551] Add function getAssetlink to DamTemplatingFunctions which takes an Asset and does not require a MediaType Created: 05/Mar/15 Updated: 26/May/15 Resolved: 18/May/15 |
|
| Status: | Closed |
| Project: | Magnolia DAM Module |
| Component/s: | DAM Templating |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 2.1 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Christopher Zimmermann | Assignee: | Christopher Zimmermann |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Date of First Response: |
| Description |
|
In a template, there is no convenient way to get the link for an asset rendition when you have an asset and the renditionname. Add new function: getAssetLink(Asset asset, String renditionName) |
| Comments |
| Comment by Espen Jervidalo [ 10/Mar/15 ] |
|
After latest changes to dam, this won't work anymore. If you don't specify a MediaType, you won't get a renderer back. You should be able to retrieve the mediaType from the asset with asset.mediaType or similar. |
| Comment by Christopher Zimmermann [ 18/May/15 ] |
|
Fixed it to work with the DAM changes by retrieving the MediaType from the asset. |