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
string currentLetter = A; | |
if (Request.QueryString["letter"] != null) { | |
currentLetter = Request.QueryString["letter"]; | |
} | |
var allContentQuery = Query.Where("Property_IncludeInAtoZ").IsEqualTo("1"); | |
var allContent = new NodeFinder().Find(allContentQuery); |
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
<nav class="atozNavigation"> | |
@for(char c = 'A'; c <= 'Z'; c++) { | |
var hasContentTest = from content in allContent where content.Data.Title.ToString().StartsWith(c.ToString()) select content; | |
if (hasContentTest.Count() > 0) { | |
if(c.ToString() == currentLetter) { | |
<a class="currentLetter" title="See content starting with @c" href="AtoZ.aspx?letter=@c">@c</a> | |
} else{ | |
<a href="AtoZ.aspx?letter=@c" title="See content starting with @c">@c</a> | |
} | |
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
@foreach(ContentNode atozItem in allContent.Where(i => i.Title.StartsWith(currentLetter))){ | |
//Code to output listing goes here | |
} |
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 | |
@{ | |
string currentLetter = "A"; | |
if (Request.QueryString["letter"] != null) { | |
currentLetter = Request.QueryString["letter"]; | |
} | |
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
string category = string.Empty; | |
if (!String.IsNullOrEmpty(Request.QueryString["category"])) | |
{ | |
category= Request.QueryString["category"]; | |
} |
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
var newsArticleQuery = Query.Where("SC_T_ID").IsEqualTo("-1234”); // only return news articles based on template ID | |
var newsQuery = newsArticleQuery; //this is so we can add a subquery | |
if (!String.IsNullOrEmpty(category)) | |
{ | |
var categorySubQuery = SubQuery.Where("Md_Category").IsEqualTo(category); | |
newsQuery = newsQuery.AndSubQuery(categorySubQuery ); | |
} |
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
Imports CMS_API.Utilities.controls | |
Public Class TextBoxWithRedirect | |
Inherits BasePlaceHolderControl | |
#Region "Private Variables" | |
Private redirectWrapper As HTMLHelper.Div | |
Private redirectLabel As ContensisLabel | |
Private redirectTextBox As System.Web.UI.webcontrols.TextBox | |
Private WithEvents redirectButton As Button |
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
<img src="image.svg" alt="image" /> |
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
if (!Modernizr.svg) { | |
$("img[src$='.svg']").each(function() { | |
var $this = $(this); | |
$this.attr("src", $this.attr("src").replace(".svg", ".png")); | |
}); | |
} |
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
<div class="image"> | |
<img src="image.svg" alt="image" /> | |
</div> | |
.lt-ie9 .image, | |
.no-svg .image { | |
background-image: url("image.png"); | |
} | |
.lt-ie9 .image img, |