This project is read-only.

At the moment the package contains the following actions:

AddTreeNodeType
The action will help you add some xml to the /umbraco/config/create/ui.xml file. This config file contains the actions for the various trees. Here's an example of what to put in the actions field in the package:
<Action undo="true" runat="install" alias="AddTreeNodeType">
	<nodeType alias="doc_Documents">
		<header>Documents</header>
		<usercontrol>/documents/createnode.ascx</usercontrol>
		<tasks>
			<delete assembly="CreativeMinds.Umbraco.Documents" type="DocumentsTask" />
		</tasks>
	</nodeType>
</Action>

The xml tells the system which user control to use when creating a new node in the doc_Documents tree. The xml also sets which Action class should be used when a node is delete. For complete documentation for the xml inside the Action node, please go to http://our.umbraco.org

ExecuteSQL
This action lets you execute sql during installation. The sql can either be embedded inside the Action xml, or the xml can contain references to files used during install and uninstall. Example:
<Action undo="true" runat="install" alias="ExecuteSQL" installsql="/umbraco/documents/install/tables.sql"
 uninstallsql="/umbraco/documents/uninstall/tables.sql">
	<Install>
		<Query Key="cmsDataTypePreValues" Version="0.1.0.3">
			<![CDATA[CREATE TABLE [dbo].[cmsDataTypePreValues](
......
]]>
		</Query>
	</Install>
	<Uninstall>
		<Query Key="cmsDataTypePreValues" Version="0.1.0.3">
			<![CDATA[IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cmsDataTypePreValues]')
 AND type in (N'U'))
DROP TABLE [dbo].[cmsDataTypePreValues]
]]>
		</Query>
	</Uninstall>
</Action>

If you put in the optional installsql or uninstallsql attributes on the Action node, the action will instead read the content of the file and execute that. The file should look like this:
<Data>
	<Install>
		<Query Key="cmsDataTypePreValues" Version="0.1.0.3">
			<![CDATA[CREATE TABLE [dbo].[cmsDataTypePreValues](
......
]]>
		</Query>
	</Install>
	<Uninstall>
		<Query Key="cmsDataTypePreValues" Version="0.1.0.3">
			<![CDATA[IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cmsDataTypePreValues]')
 AND type in (N'U'))
DROP TABLE [dbo].[cmsDataTypePreValues]
]]>
		</Query>
	</Uninstall>
</Data>

MergeUILanguage
Coming right up!

Last edited Jul 7, 2010 at 9:36 PM by privatejson, version 5

Comments

No comments yet.