Get root
1
2
3
public Node GetRoot(string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the root node for the default language
Node rootNode = client.Nodes.GetRoot();
Get root async
1
2
3
public async Task<Node> GetRootAsync(string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the French root node asynchronously
Node rootNode = await client.Nodes.GetRootAsync("fr-FR");
Get by Guid id
1
2
3
public Node GetById(Guid id, string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific German node by id
Node navNode = client.Nodes.GetById(rootNavNodeId, language: "de");
// We can now create navigation components by looping through the nodes...
Get by Guid id async
1
2
3
public async Task<Node> GetByIdAsync(Guid id, string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific German node by id
Node navNode = await client.Nodes.GetByIdAsync(rootNavNodeId, language: "de");
// We can now create navigation components by looping through the nodes...
Get by string id
1
2
3
public Node GetById(string id, string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific German node by id
Node navNode = client.Nodes.GetById("7ee53da5-6405-4fb5-80d4-b2752038134d", language: "de");
// We can now create navigation components by looping through the nodes...
Get by string id async
1
2
3
public async Task<Node> GetByIdAsync(Guid id, string language = null, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific German node by id
Node navNode = await client.Nodes.GetByIdAsync("7ee53da5-6405-4fb5-80d4-b2752038134d", language: "de");
// We can now create navigation components by looping through the nodes...
Get by path
1
2
3
public Node GetByPath(string path, IList<string> entryFields = null, entryLinkDepth = 0, bool allowPartialMatch = false, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a node by path
Node navNode = client.Nodes.GetByPath("/en-GB/movies/1995/toy-story");
Get by path async
1
2
3
public async Task<Node> GetByPathAsync(string path, IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a node by path
Node navNode = await client.Nodes.GetByPathAsync("/en-GB/movies/1995/toy-story");
Get by Guid entry id
1
2
3
4
public IReadonlyList<Node> GetByEntryId(Guid entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get all nodes with the entry assigned
IReadonly<Node> nodes = client.Nodes.GetByEntryId(entryId);
Get by Guid entry id async
1
2
3
4
public async Task<IReadonlyList<Node>> GetByEntryIdAsync(Guid entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get all nodes with the entry assigned
IReadonly<Node> nodes = await client.Nodes.GetByEntryIdAsync(entryId);
Get by string entry id
1
2
3
4
public IReadonlyList<Node> GetByEntryId(string entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get all nodes with the entry assigned
IReadonly<Node> nodes = client.Nodes.GetByEntryId("ccd00f54-8c6a-4ea8-88ab-93cda601c181");
Get by string entry id async
1
2
3
4
public async Task<IReadonlyList<Node>> GetByEntryIdAsync(string entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get all nodes with the entry assigned
IReadonly<Node> nodes = await client.Nodes.GetByEntryIdAsync("ccd00f54-8c6a-4ea8-88ab-93cda601c181");
Get canonical by Guid entry id
1
2
3
4
public Node GetCanonical(Guid entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the canonical node with the entry assigned
Node node = client.Nodes.GetByEntryId(entryId);
Get canonical by Guid entry id async
1
2
3
4
public async Task<Node> GetCanonicalAsync(Guid entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the canonical node with the entry assigned
Node node = await client.Nodes.GetCanonicalAsync(entryId);
Get canonical by string entry id
1
2
3
4
public Node GetCanonical(string entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the canonical node with the entry assigned
Node node = client.Nodes.GetByEntryId("ccd00f54-8c6a-4ea8-88ab-93cda601c181");
Get canonical by string entry id async
1
2
3
4
public async Task<Node> GetCanonicalAsync(string entryId, string language = null,
IList<string> entryFields = null, entryLinkDepth = 0, Dictionary<string, int> entryFieldLinkDepths = null)
{
}
1
2
3
4
5
6
7
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get the canonical node with the entry assigned
IReadonly<Node> nodes = await client.Nodes.GetCanonicalAsync("ccd00f54-8c6a-4ea8-88ab-93cda601c181");