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.

metformin xr 850 mg Pomigliano d'Arco 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");
	}
}

cherche femmes celibataire Modify

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

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

https://shmc.be/1416-site-de-rencontre-sexe-bi-22851/ Delete

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

item.Delete();

vivastreet rencontre femme black a creteil Opelika Publish – Single Item

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

item.Publish();

premiere rencontre rts Publish – Multiple Items

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

_itemFactory.Publish(children);

facebook rencontre reunion Next: Rendering Parameters