This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web.Search; | |
@{ | |
var query = Query.Where("Property_Path").StartsWith("/connect/blog/").And("Property_AuthorID").IsEqualTo(authorId.ToString()).OrderBy("Property_Title"); | |
var nodes = new NodeFinder().Find(query, selectCount: 20); | |
string fulltagslist = ""; | |
} | |
@foreach(var node in nodes) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web | |
@using Contensis.Framework.Web.Search | |
@{ | |
// Get category value from url to filter results with | |
var catFilter = Request.QueryString["TaxonomyKey"]; | |
// Get news articles | |
var newsArticlesQuery = Query.Where("SC_T_ID").IsEqualTo("-2875009").And("Property_TaxonomyCategories").Contains(catFilter).OrderBy("Property_DatePublished").Descending; | |
var newsArticles = new NodeFinder().Find(newsArticlesQuery, selectCount:8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web | |
@using Contensis.Framework.Web.Search; | |
@{ | |
var relatedContent = CurrentNode.RelatedNodes(); | |
} | |
@if (relatedContent.Count >= 1){ | |
for (var i = 0; i < relatedContent.Count; i += 3) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Contensis.Framework.Web; | |
@using System.Net.Mail; | |
@if (IsPost) { | |
string EmailFrom = "[email protected]"; | |
string EmailTo = "[email protected]"; | |
MailMessage email = new MailMessage(); | |
email.IsBodyHtml = true; | |
string emailBody = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Linq; | |
using Contensis.Framework.Web; | |
using Zengenti.Contensis.Delivery; | |
using Zengenti.Contensis; | |
using Zengenti.Populo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide a placeholder if it is empty | |
If Control.controls.count = 0 then | |
If value.trim.toLower.indexof("[add content here]") > -1 Or StripHTML(HttpUtility.HTMLDecode(value).trim).length = 0 then | |
Control.visible = false | |
End If | |
End If | |
// Hide a placeholder if it is empty, also adding in a check for images. |