Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-925

FopThemeResourceResolver should also resolve embedded images

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.0
    • Component/s: reports
    • Labels:

      Description

      As a business user when I customise reports I would like to be able to override embedded images using content image attributes (similar to email templates)

      Fix in FopThemeResourceResolver:

      ...
      public Resource getResource(final URI uri) throws IOException {
      ...
                  final Long contentObjId = contentService.findContentIdBySeoUri(curi);
                  if (contentObjId != null && contentObjId > 0L) {
                      final Category contentObj = contentService.getById(contentObjId);
                      if (contentObj != null) {
      
                          // copy from MailTemplateResourcesProviderShopContentImpl.getResource()
                          return new
                      }
      

        Attachments

          Activity

            People

            • Assignee:
              denis.lozenko Denis Lozenko
              Reporter:
              denis Denis Pavlov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: