Technical essays - عمادة تقنية المعلومات والإتصالات

Asset Publisher

Back

Error

share social

An error occurred while processing the template.
Denied resolving class org.apache.catalina.core.ApplicationHttpRequest by org.apache
1## 
2## Velocity Transform Template 
3## 
4## All dynamic elements in a structure can be accessed as a Velocity variable. 
5## 
6## The given structure: 
7## 
8## <root> 
9##   <dynamic-element name="main-text" type="text_area"> 
10##     <dynamic-element name="sub-image" type="image"></dynamic-element> 
11##     <dynamic-element name="sub-text" type="text"></dynamic-element> 
12##   </dynamic-element> 
13##   <dynamic-element name="more-text" type="text_area"></dynamic-element> 
14##   <dynamic-element name="ms-list" type="multi-list"> 
15##     <dynamic-element name="chocolate" type="Chocolate"></dynamic-element> 
16##     <dynamic-element name="strawberry" type="Strawberry"></dynamic-element> 
17##     <dynamic-element name="vanilla" type="Vanilla"></dynamic-element> 
18##   </dynamic-element> 
19## </root> 
20## 
21## The dynamic element "main-text" can be accessed in the following ways: 
22## 
23## $main-text.getName()     - The name "main-text" 
24## $main-text.getData()     - The data in the article for main-text 
25## $main-text.getType()     - The type "text-area" 
26## $main-text.getChildren() - A collection with two nodes (sub-image and 
27##                            sub-text) that can be used in the #foreach clause 
28## $main-text.getSiblings() - A collection of elements with the name 
29##                            "main-text". This will only return more than one 
30##                            element if this element is repeatable. 
31## 
32## One special accessor exists for elements of type "multi-list": 
33## 
34## $ms-list.getOptions() - A collection with up to three string entries 
35##                         (chocolate, strawberry, or vanilla) that can be used 
36##                         in the #foreach clause 
37## 
38## Another special accessor exists for elements of type "link_to_layout": 
39## 
40## $linkToPage.getUrl() - The URL that links to the selected page in the current 
41##                        site. 
42## 
43## The variable $journalTemplatesPath can be used to include another Journal 
44## template, e.g. #parse ("$journalTemplatesPath/LAYOUT-PARENT") 
45## 
46## The variable $viewMode specifies which mode the article is being viewed in. 
47## For example, if $viewMode evaluates to "print", that means the user clicked 
48## the print icon to view this article. 
49## 
50## 
51## Velocity Transform Template 
52## 
53## All dynamic elements in a structure can be accessed as a Velocity variable. 
54## 
55## The given structure: 
56## 
57## <root> 
58##   <dynamic-element name="main-text" type="text_area"> 
59##     <dynamic-element name="sub-image" type="image"></dynamic-element> 
60##     <dynamic-element name="sub-text" type="text"></dynamic-element> 
61##   </dynamic-element> 
62##   <dynamic-element name="more-text" type="text_area"></dynamic-element> 
63##   <dynamic-element name="ms-list" type="multi-list"> 
64##     <dynamic-element name="chocolate" type="Chocolate"></dynamic-element> 
65##     <dynamic-element name="strawberry" type="Strawberry"></dynamic-element> 
66##     <dynamic-element name="vanilla" type="Vanilla"></dynamic-element> 
67##   </dynamic-element> 
68## </root> 
69## 
70## The dynamic element "main-text" can be accessed in the following ways: 
71## 
72## $main-text.getName()     - The name "main-text" 
73## $main-text.getData()     - The data in the article for main-text 
74## $main-text.getType()     - The type "text-area" 
75## $main-text.getChildren() - A collection with two nodes (sub-image and 
76##                            sub-text) that can be used in the #foreach clause 
77## $main-text.getSiblings() - A collection of elements with the name 
78##                            "main-text". This will only return more than one 
79##                            element if this element is repeatable. 
80## 
81## One special accessor exists for elements of type "multi-list": 
82## 
83## $ms-list.getOptions() - A collection with up to three string entries 
84##                         (chocolate, strawberry, or vanilla) that can be used 
85##                         in the #foreach clause 
86## 
87## Another special accessor exists for elements of type "link_to_layout": 
88## 
89## $linkToPage.getUrl() - The URL that links to the selected page in the current 
90##                        site. 
91## 
92## The variable $journalTemplatesPath can be used to include another Journal 
93## template, e.g. #parse ("$journalTemplatesPath/LAYOUT-PARENT") 
94## 
95## The variable $viewMode specifies which mode the article is being viewed in. 
96## For example, if $viewMode evaluates to "print", that means the user clicked 
97## the print icon to view this article. 
98## 
99##set ($serviceContext = $portal.getClass().forName("com.liferay.portal.service.ServiceContextThreadLocal").getServiceContext()) 
100##set ($httpServletRequest = $serviceContext.getRequest()) 
101##get the real themeDisplay object, not the $themeDisplay map 
102##set ($objThemeDisplay = $httpServletRequest.getAttribute("THEME_DISPLAY")) 
103#set ($current_url = $request.get("attributes").CURRENT_COMPLETE_URL) 
104 
105 
106##$objThemeDisplay.getPortalURL() 
107 
108##$objThemeDisplay.getURLCurrent() 
109<div id="share-buttons"> 
110<!-- Facebook --><a href='http://www.facebook.com/sharer.php?u=$current_url' id="aui_3_4_0_1_487" target="_blank"><img alt="Facebook"  src="/Jquery1-portlet/facebook.png" /></a>  
111<!-- Twitter --><a href='http://twitter.com/share?url=$current_url&text=Najran University&amp;hashtags=تطبيق تقنية الـ VDI داخل جامعة نجران'   target="_blank"><img alt="Twitter" id="aui_3_4_0_1_466" src="/Jquery1-portlet/twitter.png" /></a>  
112<!-- Google+ --><a href='https://plus.google.com/share?url=$current_url' target="_blank"><img alt="Google" src="/Jquery1-portlet/google.png" /></a>  
113<!-- LinkedIn --><a href='http://www.linkedin.com/shareArticle?mini=true&amp;url=$current_url' target="_blank"><img alt="LinkedIn" src="/Jquery1-portlet/linkedin.png" /></a>  
114<!-- Email --><a href='mailto:?Subject=Najran University&amp;Body=$current_url' ><img alt="Email"  src="/Jquery1-portlet/email.png" /></a></div> 
115<style type="text/css"> 
116#share-buttons img{width:35px;padding:5px}</style>