Home → Resources → Articles

How to Change the Default Height of the Catalog Entry Editor Window in Ektron CMS400.Net

(Ektron CMS 400.Net) by Jason Skowronek on 04/21/2011

To my knowledge (and patience to find another means), this is the only way to change the default editor height for the catalog entry editor window in the Ektron CMS400.Net workarea.

Because, if you have clients like I do, they probably don't like trying to edit entire pages of content in an itty bitty 400px high window space (in IE at least).

The fact I even have to type this up is painful enough. Let alone the fact I have to make this change at all due to poor UI/UX design drives me crazy.

To change the default (and only) height to the catalog entry edit window in the workarea, do the following:

  1. Open the following file in your favorite text editor: /wwwroot/Workarea/Commerce/CatalogEntry.aspx.vb
  2. Go to line 119
  3. Modify any of the contentEditor settings you wish (mine is .Height = New Unit(1000, UnitType.Pixel) in IE)
  4. Save the file
  5. Immediate relief from disgruntled clients who don't like poor UX design

Here is what my code looks like.

With contentEditor
	If Request.Browser.Type = "IE6" Then
		.Width = New Unit(1200, UnitType.Pixel)
		.Height = New Unit(1000, UnitType.Pixel)
	ElseIf Request.Browser.Type.IndexOf("Firefox") <> -1 Then
		.Width = New Unit(100, UnitType.Percentage)
		.Height = New Unit(1000, UnitType.Pixel)
	Else
		.Width = New Unit(100, UnitType.Percentage)
		.Height = New Unit(1000, UnitType.Pixel)
	End If
End With

With summaryEditor
	If Request.Browser.Type = "IE6" Then
		.Width = New Unit(1200, UnitType.Pixel)
		.Height = New Unit(400, UnitType.Pixel)
	ElseIf Request.Browser.Type.IndexOf("Firefox") <> -1 Then
		.Width = New Unit(100, UnitType.Percentage)
		.Height = New Unit(800, UnitType.Pixel)
	Else
		.Width = New Unit(100, UnitType.Percentage)
		.Height = New Unit(500, UnitType.Pixel)
	End If
End With

Comments (0)

Leave a comment
Name *
Email *
Homepage
Comment

Recommend

System Mechanic 

Nero Sale 150x150 

SkoNet provides comprehensive digital consulting services such as: web development, applications development, database design and architecture, business process management, customer relationship management, and many others that help businesses of every size, industry, and geography meet the complex challenge of managing and sharing information on the web. Our skills and expertise in online systems allow us to help customers build applications ranging from simple, single-page web sites to robust enterprise systems.

Online Backup, Ektron Consulting, Ektron Programmer, Ektron Developer, Ektron Partner Utah, Ektron Partner, Ektron Architect, Ektron Hosting, Salesforce.com Consultant Utah, Salesforce.com Partner Utah, Salesforce.com Partner, Salesforce.com Programmer, Salesforce.com Architect, Salesforce.com APEX Programmer