I'm trying to create a custom page in web 8, to do it I'm following these steps:
- Create a Custom Page from Tridion
- Create an .aspx file in the File System (under WebUI/MyFolder)
Add the following simple code
<%@ Import Namespace="Tridion.ContentManager"%> <%@ Import Namespace="Tridion.ContentManager.ContentManagement"%> <%@ Page Language="C#" AutoEventWireup="false"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html > <head id="head"> </head> <body class="itemview"> <div id="StackElement" class="stack horizontal fixed"> <% Tridion.ContentManager.ContentManagement.Component c = Tridion.ContentManager.Session.GetObject("tcm:111-11111"); %> </div> </body> </html>
But I get "The type or namespace name 'Component' does not exist in the namespace 'Tridion.ContentManager.ContentManagement' (are you missing an assembly reference?)"
Any idea what might be missing?
Thanks in advance.