This file contains 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
//////////////////////////////////////////////////////// | |
***Set a datafilter on a control using the current folder*** | |
Dim SectionFolderID As Integer | |
SectionFolderID = CurrentNode.Data.Property_F_ID | |
Dim DataFilter As New CMS_API.Data.DataFilterExpression("", CMS_API.Data.DataFilterFunction.Custom, "(Property_F_ID LIKE " & SectionFolderID & ")") | |
FAQListing.DataFilters.Add(DataFilter) | |
//////////////////////////////////////////////////////// |
This file contains 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
@functions { | |
public ContentNode ResolveSynchedLink(ContentNode link) | |
{ | |
// if this a synched link then change path to the most local synched version | |
if (link.Data.SynchronisationSourceMasterContentID >= 0) | |
{ | |
int masterPageContentID = link.Data.SynchronisationSourceMasterContentID; | |
This file contains 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
$(document).ready(function(){ | |
setTimeout(function() { | |
var iframe = document.getElementsByTagName('iframe')[0], | |
iframeDoc = iframe.contentWindow.document; | |
var otherhead = iframeDoc.getElementsByTagName("head")[0]; | |
var css = document.createElement("link"); | |
css.type = "text/css"; | |
css.rel = "stylesheet"; | |
css.href = "/SiteElements/Stylesheets/twitter-widget.css"; |
This file contains 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"]; | |
This file contains 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 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 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 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 |
NewerOlder