Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Update treemenu in CMSDesk View modes: 
User avatar
Member
Member
anetcom-mail - 1/24/2010 3:47:55 PM
   
Update treemenu in CMSDesk
Hi, i am have a question..
How is updape treemenu in CMSDesk from template code?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/25/2010 7:12:36 AM
   
RE:Update treemenu in CMSDesk
Hi,

could you please provide us more details?

Do you mean how you can refresh the content tree in CMSDesk by your template code?

Best regards,
Helena Grulichova

User avatar
Member
Member
anetcom-mail - 1/25/2010 8:08:18 AM
   
RE:Update treemenu in CMSDesk
yes..)) I'm have template which add documents, but treeview don't relaod content..

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/25/2010 8:21:01 AM
   
RE:Update treemenu in CMSDesk
Hi,

We have tested following JavaScript redirect on our pages by adding to some button on page. You could check if you are in CMSDesk (current ViewMode is edit: http://devnet.kentico.com/docs/devguide/cmscontext_class.htm). The code is:
OnClick="parent.parent.parent.frames[1].location='http://localhost/41/CMSDesk/content/tree.aspx?nodeid=51'"

the nodeid should be the id of current node. Please change the URL according your domain.

Unless it works you may try to add or remove the parent in the location expression.

Best regards,
Helena Grulichova

User avatar
Member
Member
anetcom-mail - 1/25/2010 9:31:46 AM
   
RE:Update treemenu in CMSDesk
don't work..In treeview:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /KenticoCMS/CMSTemplates/~/CMSDesk/tree.aspx


User avatar
Member
Member
anetcom-mail - 1/25/2010 10:01:23 AM
   
RE:Update treemenu in CMSDesk
All is good work..! Thank you..

User avatar
Member
Member
JFK - 1/29/2014 2:20:20 AM
   
RE:Update treemenu in CMSDesk
Hello,

I have the same request as above. We have a custom ASPX page that we use in CMSDesk as editing form. In this ASPX we don't use the <cms:EditForm ...> control but standard ASP.NET controls for each field (because we have lots of custom logic).

We would like that the content tree to the left will update accordingly when new document will be created by our custom page. We use Kentico version 7 and the result above doesn't work for us.

Is there a solution via Kentico API or javascript that will work in version 7?

Thank you,
Jirka

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/11/2014 2:53:47 AM
   
RE:Update treemenu in CMSDesk
Hi,

I believe that it should be enough to call ScriptHelper.RefreshTree method in your custom code with appropriate parameters.

Best regards,
Juraj Ondrus