FAQs >
Content Management
You should add the gif file you like to use as an icon of custom document into the directory below:
/App_Themes/Default/Images/CMSDesk/Icons/
Then rename the file according the code name of the document type. Follow the example below how to rename the file:
namespace_documentType.gif
So the name consists of namespace and document type of that document separated by underscore.
UPDATE for v5.5: the location of the icon files was changed to \App_Themes\Default\Images\DocumentTypeIcons\
This functionality is not supported when shared toolbar is used. You may change the 'HTML editor toolbar location' property of particular editable region (in 'configure' dialog) to 'In-line toolbar'. Please note that the FitWindow will fit the region into current frame, i.e. the section under 'Save' and 'Spellcheck' buttons where the page mode is displayed, not the whole page.
It may happen that document name (especially for certain document types) can contain different information from the expected value set on Form tab. This is probably caused by setting incorrect field which is used for document name within particular document type. One can choose it during document type creating or for preexisting document type by accident anytime else.
You can change it in:
Site Manager -> Development -> Document types -> particular_document_type -> Fields. Here is dropdown list called
‘Document name source field’ where you can choose whatever field from actual document type as per your needs. Finally you need to save document itself to change its name to correct one.
Defining a new document type documentation.
-ov-
Actually this is known issue in version 5.0, where there is a support for resumable download. Regrettably in combination with Adobe PDFs (which has unexpected specification of bytes) it crashes. Fortunately within the
hotfix 5.0.11 (well, you could rather apply the latest one), there is implemented workaround for this issue, so please try it.
It will be also necessary to add following key to your web.config file:
<add key="CMSGetFileAcceptRanges" value="false" />
-ov-
When you create document based on your custom document type in the CMSdesk -> Content (or other type than Page (menu) item), it inherits the page template from the parent document automatically. However you might want to choose the page template for it manually.
To achieve this aim you will need to define special "new page" step. It could be the same as for Page Menu Item document type. So please go to Site Manager -> Development -> Document types -> Edit -> General tab and define New page property like this: ~/cmsdesk/Content/newpage.aspx.
Please note that IE8 was not supported in 3.x versions. You may upgrade to the latest
FCKEditor 2.6.5 (in
/CMSAdminControls/FCKEditor/) and then just commented out lines 141, 142
// if ( typeof window.DoResizeFixes == 'function' )
// window.DoResizeFixes() ;
You can change default page template in Site Manager -> Development -> Document types -> edit appropriate document type (e.g. Event) -> Default page template (select).
The more concrete workflow is stronger. For example: the workflow with “/news” scope is stronger than the workflow with “/” scope inside the /news section. It there are two workflows with the same scope specified, one of the workflow is selected in non deterministic way.
Standard in-line control takes only one parameter. If you want to pass two parameters to any in-line control you can use following workaround. Your one parameter can consist of two parameters separated for example by underscore.
Example of BizForm in-line control with passing two parameters in one:
%% control:BizFormControl?BizFormName_AlternativeFormName %%
In code behind of your inline control you can simply parse this parameter into two strings and set your control properties according your needs.
You can also find alternative approach at
http://devnet.kentico.com/Knowledge-Base/API-and-Internals/How-to-pass-two-parameters-to-inline-control.aspx
You can switch to source mode of WYSIWYG editor using CTRL + TAB keys combination. (This might be useful for example when you want to change html source of ProductDescription field on Product tab of your Product in CMS Desk where source button of WYSIWYG editor is not available by default.)
New feature of Kentico CMS 4.1 called progress indicator, which is used for example when saving documents in CMS Desk interface to keep user notified about the fact that changes are being saved, might not be suitable for all of the users. You can simply disable this feature by adding following key in web.config file:
<add key="CMSAllowProgressScript" value="false" />
It might be possible that there is additional <form> html tag in your page template which is causing such behavior. Since it is not possible to use nested form tags in Kentico CMS, please remove such additional <form> tag.
Open the file ~\CMSDesk\Content\ContentTree.ascx.cs and alter the following line (in the 4.0 version it can be found around line 230 within the object public TreeSiteMapProvider MapProvider):
mMapProvider.OrderBy = "NodeOrder ASC, NodeName ASC, NodeAlias ASC";
If you want to invert the order of nodes the mentioned line should look the following way:
mMapProvider.OrderBy = "NodeOrder DESC, NodeName DESC, NodeAlias DESC";
You can achieve your goal by following procedure below.
1) Open <your project>\CMSAdminControls\UserContributions\ContributionList.xml file
2) comment out this:
<column source="DocumentWorkflowStepID" externalsourcename="DocumentWorkflowStepID" caption="$Contribution.Columns.WorkflowStep$" wrap="false">
</column>
3) Save the file.
You can create
custom scheduled task that checks documents and if there is some document with
Publish To older than current date, the task moves it to
Archive step. We have some sample code in our Developer’s guide -
Archive the document.
For this purpose, you can use existing pre-defined FAQ document type (CMS.Faq), create document of this document type in CMSDesk -> Content (you will maybe need to allow CMS.Faq document type as a child type of CMS.MenuItem. This can be done in Site Manager -> Development -> Document types -> edit cms.menuitem -> Child types tab) and use repeater web part to display appropriate content.
You can also use pre-defined page templates in FAQ section. In this case, you need to create page of type CMS.MenuItem with FAQ page template. Then, this page is using CMSRepeater web part which is already pre-configured. You would need to add FAQ page under your current node of type CMS.Faq and the Repeater should display your FAQ question/answer.
This exception is thrown because incoming request is greater than allowed maximum request length. By default Kentico CMS 4.0 allows to receive requests that are not greater than 10 MB. This value can be increased by specifying
maxRequestLength parameter of
<httpRuntime> section of the configuration file (web.config).
1. Open the
web.config file in some editor.
2. Add the
httpRuntime element in the system.web section as follows:
<httpRuntime executionTimeout="90" maxRequestLength="10000"/>
More detailed information about mentioned parameters can be found in
Microsoft documentation.
Kentico CMS 4.0 uses protected e-mail links by default. If you do not like this behavior for some reason, you can simply modify ~\CMSAdminControls\FCKeditor\fckconfig.js file and delete following two lines:
FCKConfig.EMailProtection = 'encode' ; // none | encode | function
FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ;
This would also require clearing browser's cache.
Please note that this behavior is proper and by design. Web parts and their setting are binded to the page template and are shared on all pages, using the same template. This behavior concerns web parts itselves, and its properties (in general everything what you can see/change on Design tab). It is not concern to Page mode, so for example content of some web parts (editableText, editableImage, ...) is page independent and can be different even on shared page template. You can solve it if you create ad-hoc template (Properties -> Template). Then you will get independent, but the same templates, and you can change iis content for particular page, with no influence to other pages. For more details please see this
knowledge base article.
If any of your documents would have file uploader control with image attachment, you can edit this image file in Form tab in CMS Desk of particular document using green pencil image next to your image attachment.
You could apply the patch of FCKEditor. Please see here:
dev.fckeditor.net/ticket/2272 for more information.