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 newsArticlesQuery = Query.Where("SC_T_ID").IsEqualTo("-258875"); /* add template id for news here */ | |
var newsArticles = new NodeFinder().Find(newsArticlesQuery); | |
var utils = new CMS_API.Common.BaseUtilities(); | |
var currentDate = DateTime.Today; | |
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 newsArticlesQuery = Query.Where("SC_T_ID").IsEqualTo("-1025").OrderBy("Property_DatePublished").Descending; /* add template id for news here */ | |
var newsArticles = new NodeFinder().Find(newsArticlesQuery, selectCount:3); | |
var utils = new CMS_API.Common.BaseUtilities(); | |
} | |
<div class="sys_miniList sys_miniListNews"> |
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
<h2 class="sys_subitem-heading sys_events-subheading"><a href="@CurrentNode.Path">@CurrentNode.Title</a></h2> | |
<div class="sys_subitem-summary sys_events-summary"> | |
@if(CurrentNode.Data.Property_TaxonomyCategories.ToString() != ""){ | |
string[] eventCategoriesTax = CurrentNode.Data.Property_TaxonomyCategories.ToString().Split(','); | |
string lastCategory = eventCategoriesTax[eventCategoriesTax.Length - 1]; | |
string eventCategoriesString = ""; | |
foreach (string eventCategory in eventCategoriesTax) { | |
if(eventCategory.Contains("0/4/11/12")) { |
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
Dim eventsFilter as string = Request.QueryString("EventsCalendar_EventDateSpan") | |
If Request.QueryString.Count > 0 AndAlso Request.QueryString("EventsCalendar_EventDateSpan") IsNot Nothing Then | |
Select True | |
Case eventsFilter.Contains("All") | |
eventsFilterAll.attributes("class") = "sys_selected" | |
Case eventsFilter.Contains("Today") | |
eventsFilterToday.attributes("class") = "sys_selected" |
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
Dim IsIe7 As IECondition = IsIe7.IsVersion(7) | |
CurrentContext.Page.CSS.Add("/Zengenti-Test-Folder-2013-Re-Design/SiteElements/Stylesheets/903-ie7.css", IsIe7) | |
'For more option other that .IsVersion see http://support.contensis.co.uk/Development/WebAPI/Reference/Contensis.Framework.Web-Namespace/IECondition-Class/IECondition-Methods/IECondition-Methods.aspx |
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
[ControlID].DataFilters.Add(New DataFilterExpression("Property_TopFolderId", CMS_API.Data.DataFilterFunction.EqualTo, Property_TopFolderId)) |
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 | |
@{ | |
// This could use the GetByKey() method instead. | |
var node = CurrentContext.Taxonomy.GetByPath("StructuredContent/newscategories/", TaxonomySortOrder.Alphabetical); | |
var listingPath = ""; | |
string topFolderId = CurrentNode.Data.Property_TopFolderId.ToString(); |
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 | |
@{ | |
/* We'll start by getting the current month */ | |
var currentMonth = DateTime.Now.ToString("MMM"); | |
/* Now, we'll get the template by ID for the events records */ | |
var eventsQuery = Query.Where("SC_T_ID").IsEqualTo("-212"); | |
var eventItems = new NodeFinder().Find(eventsQuery); |
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 jobItemsQuery = Query.Where("SC_T_ID").IsEqualTo("-2356380").OrderBy("Property_Title").Ascending; /* Template and ordering */ | |
var jobItems = new NodeFinder().Find(jobItemsQuery); | |
var utils = new CMS_API.Common.BaseUtilities(); | |
string alphabet = "abcdefghijklmnopqrstuvwxyz"; /* alphabet! - there are better ways to do this, however it seems overcomplicated and this is just simple. */ | |
string letter = Request.QueryString["letter"]; | |