Custom Section - Not Detleting Options
jeanres
Posted: Tuesday, July 08, 2008 2:55:05 PM

Rank: Newbie

Joined: 7/8/2008
Posts: 7
Location: South Africa
I have created a custom section for umbraco. It works great except for the delete part

I have library called "sector.dll" With a classed called sectorTasks. In the class I have the following code

namespace Sector
{
public class sectorTasks : ITaskReturnUrl, ITask
{
// Fields
private string _alias;
private int _parentID;
private string _returnUrl = "";
private int _typeID;
private int _userID;

// Methods
public bool Delete()
{
throw new Exception("Delete Method");
return true;
}
}

the ui.xml has the follwiing

<nodeType alias="initsectors">
<header>Sector</header>
<usercontrol>/create/createSector.ascx</usercontrol>
<tasks>
<create assembly="sector" type="sectorTasks" />
</tasks>
</nodeType>
<nodeType alias="sectors">
<header>Sector</header>
<usercontrol>/create/createSector.ascx</usercontrol>
<tasks>
<delete assembly="sector" type="sectorTasks" />
</tasks>
</nodeType>

But for some reason it newer hits the delete.
jeanres
Posted: Tuesday, July 08, 2008 3:20:34 PM

Rank: Newbie

Joined: 7/8/2008
Posts: 7
Location: South Africa
There must be some decent documentation regarding this.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.