- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This example below used to work in Classic and Modern.
However, now it is not working in Modern.
What is the correct / official way to refer to an image field to render in a Print View?
The issue seems to be that Modern uses a different base url to classic... COMBINED WITH... the Print View source editor is removing any initial "/" when I save.
The effect is that I want to save a source url like this:
src="/servlets/ImageServlet/?imageid=${item.itemDetails.sections["Advanced Print View"].fields.CUSTOMER_LOGO_FILE_ID.value}
But the editor is stripping (removing) the initial "/". So "/servlets" becomes "servlets".
In classic this is not a problem, because the Print View is launched in not-relative way.
In Modern, it does not work, because the links seem to be relative to a deeper URL.
Result - I cannot enter a URL that downloads either /servlets/ImageServlet, or /api/v3/xxx or /api/v2/xxx, because the leading "/" is removed by the APV editor.
Even if I used the "insert artefact" option, to generate the table, this gives me a suggested link eg:
${item.itemDetails.sections["Image Details"].fields.IMAGE_CLOSEOUT.value}
Well, that just gives me the integer number of the field, certainly not a picture.
Does anyone know how to get image links working in Modern? Thanks.
This is currently blocking migration to Modern UI.
Solved! Go to Solution.