Webcontent-Anzeige
PUBLICATION TEMPLATE
Asset Publisher
Fehler bei der Verarbeitung der Vorlage.
Expression groupIdKey is undefined on line 47, column 53 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 press-release-slider-container"> 
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                <div class="press-release-slider" style="margin-bottom: 4px"> 
18                    <#list entries?chunk(5, '--empty--') as slide> 
19                        <div class="press-release-slide"> 
20                            <#list slide as entry> 
21                                <#if entry != '--empty--'> 
22                                    <#assign entryTitle = entry.getTitle()/> 
23                                    <#assign assetRenderer = entry.getAssetRenderer() /> 
24                                    <#assign article = assetRenderer.getArticle() /> 
25                                    <#assign className = assetRenderer.getClassName() /> 
26                                    <#assign docAndMedia = false/> 
27                                    <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
28                                    <#assign entryfile = "${fieldvalue(docXml, 'file')}"/> 
29                                    <#assign entryfile = entryfile?replace("+", "%30") /> 
30                                    <#assign res = entryfile?matches("/documents/([0-9]+)/([0-9]+)/(.*)/(.*)")/> 
31                                    <#assign fileExtension ="PDF"/> 
32                                    <#assign fileName = "dummy" /> 
33                                    <#assign title = article.getTitle(locale)/> 
34                                    <#if res> 
35                                        <#assign groupIdKey = res?groups[1]/> 
36                                        <#assign fileName = res?groups[3]/> 
37                                        <#assign fileName = fileName?replace("%30", " ") /> 
38                                        <#assign fileExtension = fileName?substring(fileName?last_index_of('.')+1)/> 
39                                    </#if> 
40 
41                                    <a href="#" class="vdma-download-by-modal" title="${entryfile}" 
42                                        data-article-id="${article.getArticleId()}" 
43                                        data-file-extension="${fileExtension}" 
44                                        data-publication-name="${article.getTitle(locale)}" 
45                                        data-file-name="${fileName}" 
46                                        data-download-url="${entryfile}" 
47                                        data-gid="${groupIdKey}"> 
48 
49                                        <i class="fa fa-file" 
50                                            data-file-extension="${fileExtension}" 
51                                            data-file-name="${fileName}"> 
52                                        </i> 
53                                        ${title} 
54                                        <i class="fa fa-caret-right"></i> 
55                                    </a> 
56                                </#if> 
57                            </#list> 
58                        </div> 
59                    </#list> 
60                </div> 
61            <#else> 
62                <@liferay.language key="vdma2.adts.no.content" /> 
63            </#if> 
64        </div> 
65    </div> 
66    <div class="panel-footer"> 
67        <div class="vdma-public-pager home-pager-orange"> 
68            <!-- pager --> 
69        </div> 
70    </div> 
71    <div class="panel-footer-height-compensator"></div> 
72</div><!-- /.panel panel-info --> 
73 
74<div class="modal fade file-table-modal small ng-scope" id="download_by_modal-${uid}"> 
75    <div class="modal-dialog"> 
76        <div class="modal-content"> 
77            <div class="modal-header"> 
78                <h3><@liferay_ui["message"] key="formular.header.registration"/>:</h3> 
79            </div> 
80            <div class="modal-body"> 
81                <p class="modal-download-file-name"> 
82                    <i class="fa fa-file fa-3x" data-file-name="file.doc"></i> 
83                    &nbsp; 
84                </p> 
85                <p> 
86                    <small><@liferay_ui["message"] key="formular.mandatory.text"/></small> 
87                </p> 
88                <form action="/delegate/oeaformular" method="post" class="ng-pristine ng-valid"> 
89                    <input type="hidden" name="articlePrimaryKey" id="articlePrimaryKey-${uid}"/> 
90                    <input type="hidden" name="groupIdKey" id="groupIdKey-${uid}"/> 
91                    <input type="hidden" name="publicationName" id="publicationName-${uid}"/> 
92                    <input type="hidden" name="" id="durl-${uid}"/> 
93 
94                    <div class="row"> 
95                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
96                            <input type="checkbox" id="usageagree-${uid}" name="usageagree" class="required"> 
97                            <#assign labelAgreeTerms> 
98                                <@liferay_ui["message"] key="formular.usageagree.text"/> 
99                            </#assign> 
100                            <label for="usageagree-${uid}">${labelAgreeTerms}*:</label> 
101                        </div> 
102                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
103                            <#assign labelLastName> 
104                                <@liferay_ui["message"] key="formular.contact.lastName"/> 
105                            </#assign> 
106                            <input type="text" name="lastName" id="user_lastname-${uid}" placeholder="${labelLastName}"> 
107                        </div> 
108                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
109                            <#assign labelFirstName> 
110                                <@liferay_ui["message"] key="formular.contact.firstName"/> 
111                            </#assign> 
112                            <input type="text" name="firstName" id="user_name-${uid}" placeholder="${labelFirstName}*"> 
113                        </div> 
114                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
115                            <#assign labelFunction> 
116                                <@liferay_ui["message"] key="formular.contact.position"/> 
117                            </#assign> 
118                            <input type="text" name="position" id="user_function-${uid}" placeholder="${labelFunction}"> 
119                        </div> 
120                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
121                            <#assign labelFirm> 
122                                <@liferay_ui["message"] key="formular.contact.firmName"/> 
123                            </#assign> 
124                            <input type="text" name="firmName" id="user_org_name-${uid}" placeholder="${labelFirm}*"> 
125                        </div> 
126                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
127                            <#assign labelAddress> 
128                                <@liferay_ui["message"] key="formular.contact.street"/> 
129                            </#assign> 
130                            <input type="text" name="street" id="user_street-${uid}" placeholder="${labelAddress}"> 
131                        </div> 
132                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
133                            <#assign labelZip> 
134                                <@liferay_ui["message"] key="formular.contact.postIndex"/> 
135                            </#assign> 
136                            <input type="text" name="postIndex" id="user_plz-${uid}" placeholder="${labelZip}*"> 
137                        </div> 
138                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
139                            <#assign labelCity> 
140                                <@liferay_ui["message"] key="formular.contact.city"/> 
141                            </#assign> 
142                            <input type="text" name="city" id="user_place-${uid}" data-toggle="tooltip" placeholder="${labelCity}*"> 
143                        </div> 
144                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
145                             <select placeholder="Country" id="responsive-registration-land-dl" id="user_country-${uid}" name="user_country"> 
146                               <option value="">&nbsp;</option> 
147                             </select> 
148                        </div> 
149                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
150                        </div> 
151                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
152                            <#assign labelPhone> 
153                                <@liferay_ui["message"] key="formular.contact.phoneNumber"/> 
154                            </#assign> 
155                            <input type="text" name="phoneNumber" id="user_phone-${uid}" placeholder="${labelPhone}"> 
156                        </div> 
157                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
158                            <#assign labelFax> 
159                                <@liferay_ui["message"] key="formular.contact.faxNumber"/> 
160                            </#assign> 
161                            <input type="text" name="faxNumber" id="user_fax-${uid}" placeholder="${labelFax}"> 
162                        </div> 
163                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
164                            <#assign labelEmail> 
165                                <@liferay_ui["message"] key="formular.contact.email"/> 
166                            </#assign> 
167                            <input type="text" name="email" id="user_email-${uid}" placeholder="${labelEmail}*"> 
168                        </div> 
169                         
170                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mt20"> 
171                            <#assign labelNotes> 
172                                <@liferay_ui["message"] key="oea.formular.contact.branche"/> 
173                            </#assign> 
174                            <textarea name="branche" id="user_msg-${uid}" style="width: 100%; resize: none;" placeholder="${labelNotes}"></textarea> 
175                        </div> 
176                         
177                    </div> 
178                </form> 
179            </div> 
180            <div class="modal-footer"> 
181                <a href="#" data-dismiss="modal"><@liferay_ui["message"] key="formular.cancel"/></a> 
182                <a href="#" id="modal_download_file_url-${uid}" target="_blank"><@liferay_ui["message"] key="formular.send"/></a> 
183            </div> 
184        </div> 
185    </div> 
186</div> 
187 
188<script type="text/javascript"> 
189    var validator${uid} = null; 
190 
191    function loadCountriesForDownloads() { 
192    var url = Liferay.ThemeDisplay.getLayoutURL() + "/-/vdmareg/resource/jsonGetCountryList/0"; 
193    jQuery.ajax({ 
194        url: url, 
195        dataType: 'json', 
196        async: true, 
197        success: function(data) { 
198            if (data.countries) { 
199                var countries = JSON.parse(data.countries); 
200                var sel = jQuery('#responsive-registration-land-dl'); 
201                  
202                for (var i = 0; i < countries.length; i ++) { 
203                    var country = countries[i]; 
204                  
205                    sel.append('<option value="' + country + '">' + country + '</option>'); 
206
207                if (!sel.val()) { 
208                console.log('setting'); 
209                    sel.val('Deutschland'); 
210
211                sel.selectpicker('refresh'); 
212
213        }, 
214        error: function(errorText) { 
215            // no action required 
216
217    }); 
218
219 
220    $(document).on('click', '#modal_download_file_url-${uid}', function(e) { 
221        var event = e || window.event; 
222        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
223        var form = $("#download_by_modal-${uid} form"); 
224        validator${uid} = form.validate({ 
225            onfocusout: false, 
226            onkeyup: false, 
227            onclick: false, 
228            ignore: [], 
229            success: function(label) { 
230                $('[for*=' + label.attr('for') + ']').removeClass('label-error'); 
231            }, 
232            errorPlacement: function(error, element) { 
233                element.addClass("tooltip-error"); 
234                element.attr("alt", error.html()); 
235                $(element).tooltip(); 
236                $('[for=' + element.attr('id') + ']').addClass('label-error'); 
237            }, 
238            invalidHandler: function(f, validator) { 
239                form.find(".tooltip-error").tooltip({ disabled: true }); 
240                form.find("input.tooltip-error").attr("alt", ""); 
241                form.find("input").removeClass("tooltip-error"); 
242            }, 
243            rules : { 
244                "firstName"         :  {required: true}, 
245                "usageagree"        :  {required: true}, 
246                "firmName"          :  {required: true}, 
247                "postIndex"         :  {required: true}, 
248                "city"              :  {required: true}, 
249                "email"             :  { 
250                                        required: true, 
251                                        email: true 
252
253            }, 
254            submitHandler: function(f) { 
255                debugger; 
256                 var url = form.find('#durl-${uid}').val(); 
257                 form.find('#durl-${uid}').val(""); 
258                 if (url){ 
259                     var win = window.open(url, '_blank'); 
260                      win.focus(); 
261
262                 f.submit(); 
263
264        }); 
265        form.submit(); 
266 
267    }); 
268 
269    $(document).on('click', '#vdma-public-links-${uid} a.vdma-download-by-modal', function(e) { 
270        var event = e || window.event; 
271        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
272        var a = $(event.target); 
273        var form = $('#download_by_modal-${uid} form'); 
274        var line = a.closest('.vdma-publication-line'); 
275        var articleId = a.data('article-id'); 
276        var groupId = a.data('gid'); 
277        var publicationName = a.data('publication-name'); 
278        var durl = a.data('download-url'); 
279        var fileName = a.data('file-name'); 
280        var fileTypeData = a.data('file-name') || ''; 
281        form.find('#durl-${uid}').val(durl); 
282        form.find('#articlePrimaryKey-${uid}').val(articleId); 
283        form.find('#groupIdKey-${uid}').val(groupId); 
284        form.find('#publicationName-${uid}').val(publicationName); 
285        if (validator${uid} != null) { 
286            validator${uid}.resetForm(); 
287
288        var that = $(this), 
289            modal = $('#download_by_modal-${uid}'), 
290            targetNameContainer = modal.find('.modal-download-file-name'), 
291            targetNameIcon = targetNameContainer.find('i'), 
292            targetUrl = $('#modal_download_file_url-${uid}'); 
293 
294        targetNameContainer.empty(); 
295        targetNameContainer.append(fileName); 
296        targetNameIcon.attr('data-file-name', fileTypeData); 
297        targetUrl.attr('href', durl); 
298        loadCountriesForDownloads(); 
299        modal.modal('show'); 
300    }); 
301 
302</script> 
Asset Publisher

Asset Publisher

Was, wann, wo? Übersicht über Fluidtechnik-Veranstaltungen 2019
Kongresse, Veranstaltungen, Messen und Sitzungen des Fachverbands Fluidtechnik: alles auf einen Blick.
China Management Meeting VDMA Antriebs- und Fluidtechnik
Das 16. China Management Meeting findet vom 12.-13.03.2019 bei Lenze Drive Systems in Shanghai statt.