-
Type:
Technical Task
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Completed
-
Affects Version/s: 6.2.0 CE M3
-
Fix Version/s: 6.2.0 CE M4, 6.2.0 CE M6
-
Component/s: Web Content > Web Content Administration
-
Labels:
-
Environment:Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 77bb304c1378e3a4ac422d4946f2a11bf7513359.
-
Business Value:3
-
Git Pull Request:
Steps to Reproduce:
- Add a structure
- 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. ##
- relates
-
LPS-32537 As a portlet developer I will be able to use all features of DDM from any portlet
-
- Closed
-
- Testing discovered
-
LPS-30961 As a WCM Administrator, I will be able to create and edit structures and templates using the new editors from Dynamic Data Mapping (DDM)
-
- Closed
-
-
LPS-31339 As a content administrator I will be able to create templates with the help of a palette, sintax hightlight and autocomplete hints
-
- Closed
-