Javascript

  Previous topic Next topic Print this topic Mail us feedback on this topic!

  Default  
  Web part control ID: Serves as an identifier for the web part. This ID must be unique within the context of each page template. The value of this property may only contain alphanumeric characters and the underscore character ( _ ).  
  Web part title: Title of the web part displayed on the Design tab of CMS Desk and in on-site editing mode. If empty, the value of the Web part control ID property is used for this purpose.  
   

  Usability  
  Enabled: Indicates if the web part is enabled.  
  Disable on subpages: Indicates if the web part should be disabled on sub-pages. If checked, the web part will not perform its function on child documents that inherit the page template containing the web part.  
  Use for document types: Contains a list of document types on which the web part should be used. If the currently selected document uses the page template containing the web part, but its type is not specified by this property, the web part will not be functional. The document types in the list must be specified by their code names and separated by semicolons (;). If empty, the web part will be enabled on all document types.  
  Use for roles: The web part will only perform its function if the current user is assigned to one of the roles specified in this list. This may be used to implement documents with specific functionality for different types of users. The roles in the list must be specified by their code names and separated by semicolons (;). If empty, the web part will work for all users.  
   

  Linked JavaScript  
  Include jQuery: If checked, the jQuery Javascript is included prior to any other includes.  
  Linked file: Can be used to specify the path to an external script file. A request for the script will be added to the page. For example: ~/CMSScripts/Custom/jquery.js. If you wish to prevent duplicate loading of the same JS library (e.g. by other web parts on the page), a special value can be entered for some common libraries. These options are: jquery, mootools, silverlight, prototype.  
  Linked file page location: Selects the location on the page where the external script will be placed.  
   

  In-line JavaScript  
  In-line script: Specifies the code of the in-line script that will be rendered on the page.  
  In-line script page location: Selects the location on the page, where the in-line javascript code will be inserted.  
  Generate script tags: Indicates whether script tags should automatically be generated around the in-line script.  
   

  Performance  
  Disable view state: Indicates if view state should be disabled for this web part.  
  Disable macros: If checked, macros contained in the values of the web part's properties will no longer be resolved.  
   

Help URL: http://devnet.kentico.com/docs/webparts/index.html?javascript_properties.htm