Go to page content


Access information about page connections.

Edges represent the connections between pages. They are implemented with tuples {EdgeId, SubjectId, PredicateId, ObjectId, OrderNr}.  The EdgeId is an unique id representing the edge, it can be used with edit actions. The OrderNr defines the order of the edges with respect to the subject.

Most edge information is accessed using the m_rsc model. Some information can only accessed with the m_edge model.

This model implements two template accessible options. They are mainly used to obtain the edge’s id for edit pages.

The following m_edge model properties are available in templates:

PropertyDescriptionExample value
oReturns a function that accepts a page id and a predicate. The end result is a list of tuples {PageId, EdgeId} which are objects of the page.  Example usage: m.edge.o[id].author[{204,13},{510,14},{508,15}]
sIdentical to the “o” property, except that this function returns the subject edges.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.