Uploaded image for project: 'Magnolia Demo Projects'
  1. Magnolia Demo Projects
  2. MGNLDEMO-413

Carousel freemarker syntax failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6.9
    • None
    • None
    • DevX 44
    • 1
    • Yes

      Steps to reproduce

      1. Try to use carousel component template (/travel-demo/templates/components/carousel.ftl) in some demo page

       

      Expected results

      Carousel shows correctly

      Actual results

      A freemarker error is produced and component is not rendered

      Workaround

      Fix Freemarker syntax (5 lines), for example:

      Original code: 

      dots: ${content.dots!"true"},

       

      Fixed code:

      dots: ${content.dots?c!"true"}, or dots: ${content.dots?string("true","false")!"true"},

      Development notes

        Acceptance criteria

              anh.vu Anh Vu
              dmarquez David Caviedes Marquez
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1d 6.5h
                  1d 6.5h