ASPX templates
Version 5.x > ASPX templates > Is it possible to display a custom page in cms desk when I select a particular node? View modes: 
User avatar
Member
Member
aneeshsiva-gmail - 5/24/2011 11:34:07 PM
   
Is it possible to display a custom page in cms desk when I select a particular node?
Hi,

Is it possible to display a custom page in cms desk when I select a particular node?

ie in CMS desk there is a document of 'news' type, I need to display a custom page when I select news


Regards Aneesh Sivan

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/25/2011 3:46:31 AM
   
RE:Is it possible to display a custom page in cms desk when I select a particular node?
Hello,

Could you please be more specific about this feature? If you want only to display a general page in the back end of Kentico then I would recommend you to create a custom module to separate it from your site. However, you can also create a link to an external page by editing the munu behavior (this will however redirect you to another site) in Properties / Menu / Menu actions. You can also combine the portal engine and aspx approach to display an external site. Or you could create a module as I mentioned and use the "Target URL" property to link a tab in CMSDesk (however not in the content tree) by adding a module in CMSSiteManager / Development / Modules / CMS Desk / User Interface / New Element. However, if you want to display it only as a tree node you will have to create a custom aspx page or a web part which would display a site in an iframe. A simple tutorial can be found here.

Best regards,
Boris Pocatko

User avatar
Member
Member
aneeshsiva-gmail - 5/26/2011 8:18:43 AM
   
RE:Is it possible to display a custom page in cms desk when I select a particular node?
In my project I created a custom document type say myDocument, and the 'New page' option the general tab I give a link to my custom page.

From the CMS Desk When I create document of myDocument type it displays my custom page.

Here I want to get the nodeId or node alias path of the currently selected node from the cms desk in my custome page.

Aneesh SIvan

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/30/2011 2:16:32 AM
   
RE:Is it possible to display a custom page in cms desk when I select a particular node?
Hello,

If you want to get the NodeAliasPath or NodeId you can use the following macros:

{%currentpageinfo.nodeid%}

Best regards,
Boris Pocatko