public CmsContent GetContent(Data.Guid siteGuid, Data.Guid contentGuid) { CmsContentDao dao = new CmsContentDao(); return dao.FindByGuid(siteGuid,contentGuid); }
private void loadContentFromQuerystring(String contentType) { String guid = WebRequestContext.Instance.Request[contentType]; //If the guid is null, check if they used the default identifier instead of a content type identifier if (guid == null) guid = WebRequestContext.Instance.Request.QueryString["cid"]; if (guid != null) { CmsContentDao dao = new CmsContentDao(); loadedContent = dao.FindByGuid(CurrentSite.Guid, guid); loadedContentType = contentType; } }