Making an extension for the console

Topics: General
Apr 20, 2011 at 6:28 AM

I cant find if there is a simple way to attach a new module in the administration like Content,Media...

I have tried to draw what I mean :-)

www.webify.dk/upload/mymodule.jpg

When clicking on the module, it have to open an aspx or ucercontrol in the main window

http://www.webify.dk/upload/loadmodule.jpg

Or is there are more Composite way to do it?

Coordinator
Apr 20, 2011 at 7:40 AM

Hello,

You should read our articles - Tree definitions  and Guide to Applications

For the start, below is a simple example how to extend C1 console with your own root perspectives:

1. Create XML file MyModule.xml and put it to the folder ~/App_Data/Composite/TreeDefinitions/:

<?xml version="1.0" encoding="utf-8"?>
<ElementStructure xmlns="http://www.composite.net/ns/management/trees/treemarkup/1.0" xmlns:f="http://www.composite.net/ns/function/1.0">
	<ElementStructure.AutoAttachments>
		<NamedParent Name="PerspectivesRoot" Position="Top" />
	</ElementStructure.AutoAttachments>
	<ElementRoot>
		<Children>
			<Element Label="My Module" Id="MyModule">
				<Children>
					<Element Label="Products" Id="products">
						<Actions>
							<CustomUrlAction Label="Show products " Url="~/Products.aspx"> </CustomUrlAction>
						</Actions>
					</Element>
				</Children>
			</Element>
		</Children>
	</ElementRoot>
</ElementStructure>

2. If you don't see new "My Module" perspective, you should check permissions for your user. Users  -> locate your user -> right click -> Edit user -> select Perspectives tab -> make sure that "My Module" perspective is selected as visible for this user.