Method | Description | |
---|---|---|
AddTemplateConfiguration ( |
Adds a configured template to be organized
|
|
NewsMover ( ) : System | ||
OnItemSaved ( object sender, |
Called when [item saved].
|
Method | Description | |
---|---|---|
EnsureAndGetDate ( System.Item item, string dateFieldName ) : System.DateTime |
Initializes the date field to the current date if there is no value.
|
|
GetItem ( |
Gets the item from the event args.
|
|
GetOrCreateChild ( System.Item parent, TemplateItem template, string childName, SortOrder subItemSorting ) : System.Item |
Gets the or create child.
|
|
GetRoot ( System.Item item, |
Gets the root of where we start organization. i.e. the parent of the 'year' node
|
|
LoadLegacySettings ( ) : void |
Loads the legacy settings.
|
|
OrganizeItem ( System.Item item, |
Organizes the item in the configurd year, [month], [day] structure. It will also remove any empty folders
|
Method | Description | |
---|---|---|
IsItemYearMonthOrDay ( System.Item item, |
Determines whether the item is a year, month or day item.
|
public AddTemplateConfiguration ( |
||
configNode | The XML configuration node. | |
return | void |
protected EnsureAndGetDate ( System.Item item, string dateFieldName ) : System.DateTime | ||
item | System.Item | The article. |
dateFieldName | string | Name of the date field. |
return | System.DateTime |
protected GetItem ( |
||
args | The |
|
return | System.Item |
protected GetOrCreateChild ( System.Item parent, TemplateItem template, string childName, SortOrder subItemSorting ) : System.Item | ||
parent | System.Item | The parent. |
template | TemplateItem | The template. |
childName | string | Name of the child. |
subItemSorting | SortOrder | |
return | System.Item |
protected GetRoot ( System.Item item, |
||
item | System.Item | The item. |
config | The config. | |
return | System.Item |
public OnItemSaved ( object sender, |
||
sender | object | The sender. |
args | The |
|
return | void |
protected OrganizeItem ( System.Item item, |
||
item | System.Item | The item. |
config | The config. | |
articleDate | System.DateTime | The article date. |
return | void |