Create, Delete & Modify Items

Fortis not only allows you to read items from Sitecore but also manage them with the strongly typed objects. The following examples show how you can create, modify, delete and publish items.

Marrero goodrx tamoxifen Create

public class MyProvider
{
	private readonly IItemFactory _itemFactory;

	public MyProvider(IItemFactory itemFactory)
	{
		_itemFactory = itemFactory;
	}

	private void Run()
	{
		IPage item = _itemFactory.Create<IPage>(/* Guid or path */, "Item Name");
	}
}

cost of azithromycin tablet Modify

IPage item = _itemFactory.GetContextItem<IPage>();

item.Title.RawValue = "Amended Title";
item.Save();

http://katy.zhp.pl/71641-valtrex-price-walmart-55083/ Delete

IItemWrapper item = _itemFactory.GetContextItem<IItemWrapper>();

item.Delete();

http://judgemavelruiz.com/85160-cipro-cost-without-insurance-19881/ Publish – Single Item

IItemWrapper item = _itemFactory.GetContextItem<IItemWrapper>();

item.Publish();

http://pergamoauto.com/15-cat/casino_23.html Publish – Multiple Items

IItemWrapper item = _itemFactory.GetContextItem<IItemWrapper>();
IEnumerable<IItemWrapper> children = item.Children<IItemWrapper>();

_itemFactory.Publish(children);

https://med-careinc.com/64293-nolvadex-online-36177/ Next: Rendering Parameters