Details

      Description

      Steps to Reproduce:

      1. Add a structure
      2. Add a template
        • The script editor does not have a preset value to help users (preset value similar to what is found in the 6.1.x template editor)

      This is the 6.1.x preset value for the template editor:

      ##
      ## Velocity Transform Template
      ##
      ## All dynamic elements in a structure can be accessed as a Velocity variable.
      ##
      ## The given structure:
      ##
      ## <root>
      ##   <dynamic-element name="main-text" type="text_area">
      ##     <dynamic-element name="sub-image" type="image"></dynamic-element>
      ##     <dynamic-element name="sub-text" type="text"></dynamic-element>
      ##   </dynamic-element>
      ##   <dynamic-element name="more-text" type="text_area"></dynamic-element>
      ##   <dynamic-element name="ms-list" type="multi-list">
      ##     <dynamic-element name="chocolate" type="Chocolate"></dynamic-element>
      ##     <dynamic-element name="strawberry" type="Strawberry"></dynamic-element>
      ##     <dynamic-element name="vanilla" type="Vanilla"></dynamic-element>
      ##   </dynamic-element>
      ## </root>
      ##
      ## The dynamic element "main-text" can be accessed in the following ways:
      ##
      ## $main-text.getName()     - The name "main-text"
      ## $main-text.getData()     - The data in the article for main-text
      ## $main-text.getType()     - The type "text-area"
      ## $main-text.getChildren() - A collection with two nodes (sub-image and
      ##                            sub-text) that can be used in the #foreach clause
      ## $main-text.getSiblings() - A collection of elements with the name
      ##                            "main-text". This will only return more than one
      ##                            element if this element is repeatable.
      ##
      ## One special accessor exists for elements of type "multi-list":
      ##
      ## $ms-list.getOptions() - A collection with up to three string entries
      ##                         (chocolate, strawberry, or vanilla) that can be used
      ##                         in the #foreach clause
      ##
      ## Another special accessor exists for elements of type "link_to_layout":
      ##
      ## $linkToPage.getUrl() - The URL that links to the selected page in the current
      ##                        site.
      ##
      ## The variable $journalTemplatesPath can be used to include another Journal
      ## template, e.g. #parse ("$journalTemplatesPath/LAYOUT-PARENT")
      ##
      ## The variable $viewMode specifies which mode the article is being viewed in.
      ## For example, if $viewMode evaluates to "print", that means the user clicked
      ## the print icon to view this article.
      ##
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              joshua.robins Joshua Robins (Inactive)
              Recent user:
              Marta Elicegui
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 30 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.0 CE M4
                  6.2.0 CE M6