uQuery Examples

To use the uQuery methods directly on a template (the *.master or *.ascx) import the namespaces you wish to use from the following:

<%@ Import Namespace="uComponents.Core" %>
<%@ Import Namespace="uComponents.Core.uQueryExtensions" %>
<%@ Import Namespace="umbraco.presentation.nodeFactory" %>
<%@ Import Namespace="umbraco.cms.businesslogic.media" %>
<%@ Import Namespace="umbraco.cms.businesslogic.member" %>
<%@ Import Namespace="umbraco.cms.businesslogic.relation" %>

Alternatively if using from code behind then include the namespaces according to the language used. The main static class uQuery, exists in uComponents.Core namespace, whilst the uComponents.Core.uQueryExtensions contains the extension methods for the Umbraco objects.




Last edited Dec 17, 2010 at 3:27 PM by Hendy, version 1