Pages

Monday, August 25, 2014

CMS/WSM/MS won't accept a license key

If CMS doesn’t accept a key that is supposed to be working, you might want to update the database settings manually.

  1. Logon to the Database and navigate to Databases -> IoAdministration -> Tables -> dbo.IO_CMP
  2. Right click and choose open table
  3. Make sure that there is the correct server name or the IP address of the CMS server is in the column CMP2. CMP1 is the connection name and you may change this as well. The proper license key should be entered in the column CMP6.

Credit goes to the Anjam for remembering this and David Vogt for writing it down

Tuesday, June 3, 2014

Template won't save, especially CSS

The template editor is written in ASP. "Maximum Requesting Entity Body Limit" is the mechanism used to transit and save the code in the template editor.  By default, ASP setting in IIS is configured to accept a maximum of 200KB.

Solution: increase your "Maximum Requesting Entity Body Limit" setting under ASP under your CMS web application.  http://stackoverflow.com/questions/9466081/how-to-increase-request-accept-limit-for-asp-classic

Thursday, May 8, 2014

Getting Current Management Server RedDot CMS Project Name via JavaScript

This is the easiest way to get current project name without complicated rendertag or preexecution. Just make sure you are already use the JQuery.js library.
<script type="text/javascript">
 var TheRealUIContainerPage;
 var ProjectLabelText;
 if(window.opener){
  if(window.opener.name == 'ioActionMenu'){
   // smarttree
   TheRealUIContainerPage = top.opener.parent.parent.parent.parent.document;
   ProjectLabelText = $(TheRealUIContainerPage).find('body #ctl00_ctl00__bodyPlaceHolder__infoMenu_2 .ca_tb_txt').text();
  }
 }else{
  // smartedit
  TheRealUIContainerPage = window.parent.document;
  ProjectLabelText = $(TheRealUIContainerPage).find('body #ctl00_ctl00_ctl00__bodyPlaceHolder__infoMenu_2 .ca_tb_txt').text();
 }

 alert(ProjectLabelText);
</script>

Rendertag to Escape Double Quote and Single Quote

This is a solution posted by Tim Davis on https://groups.google.com/forum/#!topic/reddot-cms-users/ImqWdAN4XIY

You want to assign text placeholder content class a server side preexecution variable, but the text placeholder contains double quote, single quote and carriage return, which will cause preexecution error because the resulting code will be like this

Dim MyVar

MyVar = "<%txt_body%>"

'resulting code
'this cause syntax error, cannot have unescape quote inside quote
MyVar = "he says,"hello""

'this cause syntax error, cannot unclosed second line
MyVar = "first line
               second line"

What you can do is to use rendertag to escape the text. This method handles, &, ", ', accented character like (á, é, í, ó, ú, ü, ñ, ¿, ¡), and new line carriage return

Dim MyVar

MyVar = "<%!! Escape:HtmlEncode(<%txt_body%>) !!%>"

Tuesday, November 26, 2013

Clear Page Cache

Download

Screenshot

Compatibility
  • 7.x
  • 9.x
  • 10.x
  • 11.x

Description
  1. Clear cache for specific page instead of entire project.

Accessibility
  • In SmartTree, select page, Action Menu, Clear Page Cache
  • In SmartEdit, open page, right click, plugins in context menu, Clear Page Cache

MoveIt

Download

Screenshot



Compatibility
  • 7.x
  • 9.x
  • 10.x
  • 11.x

Description
  1. Allow users in SmartEdit to move pages easily from current location to predefined locations without the hassle of getting page into clipboard, disconnect from current location, navigate to destination and connect page.
  2. Use the button "Add Current Page as Target" to predefined a list of destination pages
  3. Click the button "Move" to bring up a choice dialog for move target location on destination page

Accessibility
  • In SmartEdit, open page, right click, plugins in context menu, MoveIt

Set Element Display In Project Structure

Download

Screenshot

Compatibility
  • 7.x
  • 9.x
  • 10.x
  • 11.x

Description
  1. Allow SmartTree user to set whether a structure element is visible in SmartTree.

Accessibility
  • In SmartTree, navigate to a content class, expand and select a structural element, in Action Menu, click SetElementDisplayInProjectStructure.