-
Notifications
You must be signed in to change notification settings - Fork 12
/
EditLayoutFiles.ascx.vb
executable file
·520 lines (403 loc) · 30.2 KB
/
EditLayoutFiles.ascx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
Imports DotNetNuke.Common
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Namespace Ventrian.PropertyAgent
Partial Public Class EditLayoutFiles
Inherits PropertyAgentBase
#Region " Private Methods "
Private Sub BindCrumbs()
Dim crumbs As New ArrayList
Dim objCrumbMain As New CrumbInfo
objCrumbMain.Caption = PropertySettings.MainLabel
objCrumbMain.Url = NavigateURL()
crumbs.Add(objCrumbMain)
Dim objLayoutFiles As New CrumbInfo
objLayoutFiles.Caption = Localization.GetString("EditLayoutFiles", LocalResourceFile)
objLayoutFiles.Url = NavigateURL(Me.TabId, "", PropertySettings.SEOAgentType & "=EditLayoutFiles")
crumbs.Add(objLayoutFiles)
If (PropertySettings.BreadcrumbPlacement = BreadcrumbType.Portal) Then
For i As Integer = 0 To crumbs.Count - 1
Dim objCrumb As CrumbInfo = crumbs(i)
If (i > 0) Then
Dim objTab As New DotNetNuke.Entities.Tabs.TabInfo
objTab.TabID = -8888 + i
objTab.TabName = objCrumb.Caption
objTab.Url = objCrumb.Url
PortalSettings.ActiveTab.BreadCrumbs.Add(objTab)
End If
Next
End If
If (PropertySettings.BreadcrumbPlacement = BreadcrumbType.Module) Then
rptBreadCrumbs.DataSource = crumbs
rptBreadCrumbs.DataBind()
End If
End Sub
Private Sub BindLayoutGroups()
For Each value As Integer In System.Enum.GetValues(GetType(LayoutGroupType))
If (value = LayoutGroupType.Submission = False And value = LayoutGroupType.Contact = False And value = LayoutGroupType.ContactBroker = False And value = LayoutGroupType.ContactOwner = False And value = LayoutGroupType.SendToFriend = False And value = LayoutGroupType.CommentNotification = False) Then
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(LayoutGroupType), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(LayoutGroupType), value), Me.LocalResourceFile)
drpLayoutGroups.Items.Add(li)
End If
Next
End Sub
Private Sub BindDetails()
lblCurrentTemplate.Text = Me.PropertySettings.Template
lblLayoutGroup.Text = Localization.GetString(drpLayoutGroups.SelectedValue & "Description", Me.LocalResourceFile)
Dim objLayoutController As New LayoutController(Me.PortalSettings, Me.PropertySettings, Me.Page, Me, Me.IsEditable, Me.TabId, Me.ModuleId, Me.ModuleKey)
Dim objLayoutGroup As LayoutGroupType = CType(System.Enum.Parse(GetType(LayoutGroupType), drpLayoutGroups.SelectedValue), LayoutGroupType)
trHeader.Visible = False
trItem.Visible = False
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = False
trPhotoFirst.Visible = False
trPhoto.Visible = False
trPageTitle.Visible = False
trPageDescription.Visible = False
trPageKeywords.Visible = False
trPageHeader.Visible = False
txtHeader.Text = ""
txtItem.Text = ""
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = ""
txtPhotoFirst.Text = ""
txtPhoto.Text = ""
txtPageTitle.Text = ""
txtPageDescription.Text = ""
txtPageKeywords.Text = ""
Select Case objLayoutGroup
Case LayoutGroupType.Comment
trHeader.Visible = True
trItem.Visible = True
trSeparator.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Comment_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Comment_Item_Html).Template
txtSeparator.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Comment_Separator_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Comment_Footer_Html).Template
Case LayoutGroupType.Contact
trHeader.Visible = True
trItem.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.ContactEmail_Subject_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.ContactEmail_Body_Html).Template
Case LayoutGroupType.Export
trHeader.Visible = True
trItem.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Export_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Export_Item_Html).Template
Case LayoutGroupType.Featured
trHeader.Visible = True
trItem.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Featured_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Featured_Item_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Featured_Footer_Html).Template
Case LayoutGroupType.Latest
trHeader.Visible = True
trItem.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Latest_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Latest_Item_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Latest_Footer_Html).Template
Case LayoutGroupType.Listing
trHeader.Visible = True
trItem.Visible = True
trAlternate.Visible = True
trSeparator.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Listing_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Listing_Item_Html).Template
txtAlternate.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Listing_Alternate_Html).Template
txtSeparator.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Listing_Separator_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Listing_Footer_Html).Template
Case LayoutGroupType.Message
trItem.Visible = True
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Message_Item_Html).Template
Case LayoutGroupType.[Option]
trItem.Visible = True
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Option_Item_Html).Template
Case LayoutGroupType.Pdf
trHeader.Visible = True
trItem.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Pdf_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Pdf_Item_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Pdf_Footer_Html).Template
Case LayoutGroupType.Photo
trItem.Visible = True
trPhotoFirst.Visible = True
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Photo_Item_Html).Template
txtPhotoFirst.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Photo_First_Html).Template
Case LayoutGroupType.Print
trHeader.Visible = True
trItem.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Print_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Print_Item_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Print_Footer_Html).Template
Case LayoutGroupType.Review
trHeader.Visible = True
trItem.Visible = True
trSeparator.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Review_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Review_Item_Html).Template
txtSeparator.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Review_Separator_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Review_Footer_Html).Template
Case LayoutGroupType.RSS
trHeader.Visible = True
trItem.Visible = True
trPhoto.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Item_Html).Template
txtPhoto.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Photo_Html).Template
Case LayoutGroupType.RSSReader
trHeader.Visible = True
trItem.Visible = True
trFooter.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Item_Html).Template
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Footer_Html).Template
Case LayoutGroupType.Search
trHeader.Visible = True
trItem.Visible = True
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = True
trPhotoFirst.Visible = False
trPageTitle.Visible = False
trPageDescription.Visible = False
trPageKeywords.Visible = False
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Search_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Search_Item_Html).Template
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Search_Footer_Html).Template
txtPhotoFirst.Text = ""
txtPageTitle.Text = ""
txtPageDescription.Text = ""
txtPageKeywords.Text = ""
Case LayoutGroupType.Stylesheet
trHeader.Visible = False
trItem.Visible = True
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = False
trPhotoFirst.Visible = False
trPageTitle.Visible = False
trPageDescription.Visible = False
trPageKeywords.Visible = False
txtHeader.Text = ""
txtItem.Text = objLayoutController.GetStylesheet(Me.PropertySettings.Template)
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = ""
txtPhotoFirst.Text = ""
txtPageTitle.Text = ""
txtPageDescription.Text = ""
txtPageKeywords.Text = ""
Case LayoutGroupType.Type
trHeader.Visible = True
trItem.Visible = True
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = True
trPhotoFirst.Visible = False
trPageTitle.Visible = True
trPageDescription.Visible = True
trPageKeywords.Visible = True
trPageHeader.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_Item_Html).Template
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_Footer_Html).Template
txtPhotoFirst.Text = ""
txtPageTitle.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_PageTitle_Html).Template
txtPageDescription.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_PageDescription_Html).Template
txtPageKeywords.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_PageKeyword_Html).Template
txtPageHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Type_PageHeader_Html).Template
Case LayoutGroupType.Types
trHeader.Visible = True
trItem.Visible = True
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = True
trPhotoFirst.Visible = False
trPageTitle.Visible = False
trPageDescription.Visible = False
trPageKeywords.Visible = False
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Types_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Types_Item_Html).Template
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.Types_Footer_Html).Template
txtPhotoFirst.Text = ""
txtPageTitle.Text = ""
txtPageDescription.Text = ""
txtPageKeywords.Text = ""
Case LayoutGroupType.View
trHeader.Visible = True
trItem.Visible = True
trAlternate.Visible = False
trSeparator.Visible = False
trFooter.Visible = True
trPhotoFirst.Visible = False
trPageTitle.Visible = True
trPageDescription.Visible = True
trPageKeywords.Visible = True
trPageHeader.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_Item_Html).Template
txtAlternate.Text = ""
txtSeparator.Text = ""
txtFooter.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_Footer_Html).Template
txtPhotoFirst.Text = ""
txtPageTitle.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_PageTitle_Html).Template
txtPageDescription.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_PageDescription_Html).Template
txtPageKeywords.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_PageKeywords_Html).Template
txtPageHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.View_PageHeader_Html).Template
Case LayoutGroupType.Xml
trHeader.Visible = True
trItem.Visible = True
trPhoto.Visible = True
txtHeader.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.XML_Header_Html).Template
txtItem.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.XML_Item_Html).Template
txtPhoto.Text = objLayoutController.GetLayout(Me.PropertySettings.Template, LayoutType.XML_Photo_Html).Template
End Select
End Sub
#End Region
#Region " Event Handlers "
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
Try
BindCrumbs()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
If (Page.IsPostBack = False) Then
BindLayoutGroups()
BindDetails()
End If
cmdUpdate.CssClass = PropertySettings.ButtonClass
cmdCancel.CssClass = PropertySettings.ButtonClass
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub drpTemplateGroups_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles drpLayoutGroups.SelectedIndexChanged
Try
BindDetails()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub cmdUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpdate.Click
Try
Dim objLayoutController As New LayoutController(Me.PortalSettings, Me.PropertySettings, Me.Page, Me, Me.IsEditable, Me.TabId, Me.ModuleId, Me.ModuleKey)
Dim objLayoutGroup As LayoutGroupType = CType(System.Enum.Parse(GetType(LayoutGroupType), drpLayoutGroups.SelectedValue), LayoutGroupType)
Select Case objLayoutGroup
Case LayoutGroupType.Comment
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Comment_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Comment_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Comment_Separator_Html, txtSeparator.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Comment_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Contact
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.ContactEmail_Subject_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.ContactEmail_Body_Html, txtItem.Text)
Case LayoutGroupType.Export
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Export_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Export_Item_Html, txtItem.Text)
Case LayoutGroupType.Featured
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Featured_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Featured_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Featured_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Latest
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Latest_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Latest_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Latest_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Listing
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Listing_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Listing_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Listing_Alternate_Html, txtAlternate.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Listing_Separator_Html, txtSeparator.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Listing_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Message
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Message_Item_Html, txtItem.Text)
Case LayoutGroupType.[Option]
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Option_Item_Html, txtItem.Text)
Case LayoutGroupType.Pdf
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Pdf_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Pdf_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Pdf_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Photo
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Photo_First_Html, txtPhotoFirst.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Photo_Item_Html, txtItem.Text)
Case LayoutGroupType.Print
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Print_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Print_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Print_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Review
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Review_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Review_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Review_Separator_Html, txtSeparator.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Review_Footer_Html, txtFooter.Text)
Case LayoutGroupType.RSS
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Photo_Html, txtPhoto.Text)
Case LayoutGroupType.RSSReader
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.RSS_Reader_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Search
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Search_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Search_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Search_Footer_Html, txtFooter.Text)
Case LayoutGroupType.Stylesheet
objLayoutController.UpdateStylesheet(Me.PropertySettings.Template, txtItem.Text)
Case LayoutGroupType.Type
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_Footer_Html, txtFooter.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_PageTitle_Html, txtPageTitle.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_PageDescription_Html, txtPageDescription.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_PageKeyword_Html, txtPageKeywords.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Type_PageHeader_Html, txtPageHeader.Text)
Case LayoutGroupType.Types
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Types_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Types_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.Types_Footer_Html, txtFooter.Text)
Case LayoutGroupType.View
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_Footer_Html, txtFooter.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_PageTitle_Html, txtPageTitle.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_PageDescription_Html, txtPageDescription.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_PageKeywords_Html, txtPageKeywords.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.View_PageHeader_Html, txtPageHeader.Text)
Case LayoutGroupType.XML
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.XML_Header_Html, txtHeader.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.XML_Item_Html, txtItem.Text)
objLayoutController.UpdateLayout(Me.PropertySettings.Template, LayoutType.XML_Photo_Html, txtPhoto.Text)
End Select
lblLayoutFilesUpdated.Visible = True
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
Try
Response.Redirect(NavigateURL, True)
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
End Class
End Namespace