Web Content Display
PUBLICATION TEMPLATE
Asset Publisher
An error occurred while processing the template.
Expression groupIdKey is undefined on line 44, column 37 in 10153#10191#19191029.
1<#include "${templatesPath}/17531802"/> 
2<#assign portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet_2_0.tld"]/> 
3<#assign uid> 
4	<@portlet.namespace> 
5    </@portlet.namespace> 
6</#assign> 
7 
8<div class="panel panel-info vdma-public-side-links"> 
9    <div class="panel-heading"> 
10        <h2 class="text-center"> 
11            ${themeDisplay.getPortletDisplay().getTitle()} 
12        </h2> 
13    </div> 
14    <div class="panel-body"> 
15        <div class="vdma-public-links" id="vdma-public-links-${uid}"> 
16            <#if entries?has_content> 
17                <#list entries as entry> 
18 
19                    <#assign entryTitle = entry.getTitle()/> 
20                    <#assign assetRenderer = entry.getAssetRenderer() /> 
21                    <#assign article = assetRenderer.getArticle() /> 
22                    <#assign className = assetRenderer.getClassName() /> 
23                	<#assign docAndMedia = false/> 
24                	<#assign docXml = saxReaderUtil.read(article.getContent()) /> 
25                	<#assign entryfile = "${fieldvalue(docXml, 'file')}"/> 
26                	<#assign entryfile = entryfile?replace("+", "%30") /> 
27                    <#assign res = entryfile?matches("/documents/([0-9]+)/([0-9]+)/(.*)/(.*)")/> 
28                	<#assign fileExtension ="PDF"/> 
29                	<#assign fileName = "dummy" /> 
30                	<#assign title = article.getTitle(locale)/> 
31                	<#if res> 
32                        <#assign groupIdKey = res?groups[1]/> 
33                    	<#assign fileName = res?groups[3]/> 
34                    	<#assign fileName = fileName?replace("%30", " ") /> 
35                        <#assign fileExtension = fileName?substring(fileName?last_index_of('.')+1)/> 
36                    </#if> 
37 
38                    <a href="#" class="vdma-download-by-modal" title="${entryfile}" 
39                        data-article-id="${article.getArticleId()}" 
40                        data-file-extension="${fileExtension}" 
41                        data-publication-name="${article.getTitle(locale)}" 
42                        data-file-name="${fileName}" 
43                        data-download-url="${entryfile}" 
44                        data-gid="${groupIdKey}"> 
45 
46                        <i class="fa fa-file" 
47                            data-file-extension="${fileExtension}" 
48                            data-file-name="${fileName}"> 
49                        </i> 
50                        ${title} 
51                        <i class="fa fa-caret-right"></i> 
52                    </a> 
53                </#list> 
54            <#else> 
55                <@liferay.language key="vdma2.adts.no.content" /> 
56            </#if> 
57        </div> 
58    </div> 
59</div><!-- /.panel panel-info --> 
60 
61<div class="modal fade file-table-modal small ng-scope" id="download_by_modal-${uid}"> 
62    <div class="modal-dialog"> 
63        <div class="modal-content"> 
64            <div class="modal-header"> 
65                <h3>Registrierung:</h3> 
66            </div> 
67            <div class="modal-body"> 
68                <p class="modal-download-file-name"> 
69                    <i class="fa fa-file fa-3x" data-file-name="file.doc"></i> 
70                    &nbsp; 
71                </p> 
72                <p> 
73                    <small>Die mit * markierten Felden müssen ausgefült werden</small> 
74                </p> 
75                <form action="/delegate/vdma2formular" method="post" class="ng-pristine ng-valid"> 
76            		<input type="hidden" name="articlePrimaryKey" id="articlePrimaryKey-${uid}"/> 
77            		<input type="hidden" name="groupIdKey" id="groupIdKey-${uid}"/> 
78		            <input type="hidden" name="publicationName" id="publicationName-${uid}"/> 
79		            <input type="hidden" name="" id="durl-${uid}"/> 
80 
81                    <div class="row"> 
82                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
83                            <input type="checkbox" id="usageagree-${uid}" name="usageagree" class="required"> 
84                            <#assign labelAgreeTerms> 
85                                <@liferay_ui["message"] key="formular.usageagree.text"/> 
86                            </#assign> 
87                            <label for="usageagree-${uid}">${labelAgreeTerms}*:</label> 
88                        </div> 
89                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
90                            <#assign labelLastName> 
91                                <@liferay_ui["message"] key="formular.contact.lastName"/> 
92                            </#assign> 
93                            <input type="text" name="lastName" id="user_lastname-${uid}" placeholder="${labelLastName}"> 
94                        </div> 
95                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
96                            <#assign labelFirstName> 
97                                <@liferay_ui["message"] key="formular.contact.firstName"/> 
98                            </#assign> 
99                            <input type="text" name="firstName" id="user_name-${uid}" placeholder="${labelFirstName}*"> 
100                        </div> 
101                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
102                            <#assign labelFunction> 
103                                <@liferay_ui["message"] key="formular.contact.position"/> 
104                            </#assign> 
105                            <input type="text" name="position" id="user_function-${uid}" placeholder="${labelFunction}"> 
106                        </div> 
107                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
108                            <#assign labelFirm> 
109                                <@liferay_ui["message"] key="formular.contact.firmName"/> 
110                            </#assign> 
111                            <input type="text" name="firmName" id="user_org_name-${uid}" placeholder="${labelFirm}*"> 
112                        </div> 
113                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
114                            <#assign labelAddress> 
115                                <@liferay_ui["message"] key="formular.contact.street"/> 
116                            </#assign> 
117                            <input type="text" name="street" id="user_street-${uid}" placeholder="${labelAddress}"> 
118                        </div> 
119                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
120                            <#assign labelZip> 
121                                <@liferay_ui["message"] key="formular.contact.postIndex"/> 
122                            </#assign> 
123                            <input type="text" name="postIndex" id="user_plz-${uid}" placeholder="${labelZip}*"> 
124                        </div> 
125                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
126                            <#assign labelCity> 
127                                <@liferay_ui["message"] key="formular.contact.city"/> 
128                            </#assign> 
129                            <input type="text" name="city" id="user_place-${uid}" data-toggle="tooltip" placeholder="${labelCity}*"> 
130                        </div> 
131                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
132                            <#assign labelPhone> 
133                                <@liferay_ui["message"] key="formular.contact.phoneNumber"/> 
134                            </#assign> 
135                            <input type="text" name="phoneNumber" id="user_phone-${uid}" placeholder="${labelPhone}"> 
136                        </div> 
137                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
138                            <#assign labelFax> 
139                                <@liferay_ui["message"] key="formular.contact.faxNumber"/> 
140                            </#assign> 
141                            <input type="text" name="faxNumber" id="user_fax-${uid}" placeholder="${labelFax}"> 
142                        </div> 
143                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
144                            <#assign labelEmail> 
145                                <@liferay_ui["message"] key="formular.contact.email"/> 
146                            </#assign> 
147                            <input type="text" name="email" id="user_email-${uid}" placeholder="${labelEmail}*"> 
148                        </div> 
149                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mt20"> 
150                            <#assign labelNotes> 
151                                <@liferay_ui["message"] key="oea.formular.contact.branche"/> 
152                            </#assign> 
153                            <textarea name="branche" id="user_msg-${uid}" style="width: 100%; resize: none;" placeholder="${labelNotes}"></textarea> 
154                        </div> 
155                    </div> 
156                </form> 
157            </div> 
158            <div class="modal-footer"> 
159                <a href="#" data-dismiss="modal"><@liferay_ui["message"] key="formular.cancel"/></a> 
160                <a href="#" id="modal_download_file_url-${uid}" target="_blank"><@liferay_ui["message"] key="formular.send"/></a> 
161            </div> 
162        </div> 
163    </div> 
164</div> 
165 
166<script type="text/javascript"> 
167 
168    var validator${uid} = null; 
169 
170    $(document).on('click', '#modal_download_file_url-${uid}', function(e) { 
171        var event = e || window.event; 
172        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
173        var form = $("#download_by_modal-${uid} form"); 
174        validator${uid} = form.validate({ 
175            onfocusout: false, 
176            onkeyup: false, 
177            onclick: false, 
178            ignore: [], 
179            success: function(label) { 
180                $('[for*=' + label.attr('for') + ']').removeClass('label-error'); 
181            }, 
182            errorPlacement: function(error, element) { 
183                element.addClass("tooltip-error"); 
184                element.attr("alt", error.html()); 
185                $(element).tooltip(); 
186                $('[for=' + element.attr('id') + ']').addClass('label-error'); 
187            }, 
188            invalidHandler: function(f, validator) { 
189                form.find(".tooltip-error").tooltip({ disabled: true }); 
190                form.find("input.tooltip-error").attr("alt", ""); 
191                form.find("input").removeClass("tooltip-error"); 
192            }, 
193            rules : { 
194                "firstName"         :  {required: true}, 
195                "usageagree"        :  {required: true}, 
196                "firmName"          :  {required: true}, 
197                "postIndex"         :  {required: true}, 
198                "city"              :  {required: true}, 
199                "email"             :  { 
200                                        required: true, 
201                                        email: true 
202
203            }, 
204            submitHandler: function(f) { 
205                debugger; 
206                 var url = form.find('#durl-${uid}').val(); 
207                 form.find('#durl-${uid}').val(""); 
208                 if (url){ 
209                     var win = window.open(url, '_blank'); 
210                      win.focus(); 
211
212                 f.submit(); 
213
214        }); 
215        form.submit(); 
216 
217    }); 
218 
219    $(document).on('click', '#vdma-public-links-${uid} a.vdma-download-by-modal', function(e) { 
220        var event = e || window.event; 
221        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
222        var a = $(event.target); 
223        var form = $('#download_by_modal-${uid} form'); 
224        var line = a.closest('.vdma-publication-line'); 
225        var articleId = a.data('article-id'); 
226        var groupId = a.data('gid'); 
227        var publicationName = a.data('publication-name'); 
228        var durl = a.data('download-url'); 
229        var fileName = a.data('file-name'); 
230        var fileTypeData = a.data('file-name') || ''; 
231        form.find('#durl-${uid}').val(durl); 
232        form.find('#articlePrimaryKey-${uid}').val(articleId); 
233        form.find('#groupIdKey-${uid}').val(groupId); 
234        form.find('#publicationName-${uid}').val(publicationName); 
235        if (validator${uid} != null) { 
236            validator${uid}.resetForm(); 
237
238        var that = $(this), 
239            modal = $('#download_by_modal-${uid}'), 
240            targetNameContainer = modal.find('.modal-download-file-name'), 
241            targetNameIcon = targetNameContainer.find('i'), 
242            targetUrl = $('#modal_download_file_url-${uid}'); 
243 
244        targetNameContainer.empty(); 
245        targetNameContainer.append(fileName); 
246        targetNameIcon.attr('data-file-name', fileTypeData); 
247        targetUrl.attr('href', durl); 
248 
249        modal.modal('show'); 
250    }); 
251 
252</script> 
Asset Publisher

Asset Publisher

HANNOVER MESSE USA 2018: Solutions Theater
The new Solutions Theater featuring Smart Manufacturing, Predictive Maintenance, and other Industrie 4.0 and Industrial Internet of Things (IIoT) topics. The education programs and demonstrations will take place from September 10-14 on the HANNOVER MESSE USA trade show floor co-located with IMTS 2018.
10th E-MOTIVE International Expert Forum Electric Vehicle Drives – 12th to 13th September 2018 Stuttgart

Shaping change – a dialog between research and industry on electric vehicle drives
The evolution of mobility is in full swing. Political environmental objectives and the digitalisation of society and industry are key drivers of electro-mobility. The future drivetrain will be determined by the further development and integration of new technologies.