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

Carousel freemarker syntax failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.6.9
    • None
    • None

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

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