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 variable("MD_AlternativeTitle") isnot nothing then | |
Me.TitleBar = variable("MD_AlternativeTitle") | |
end if |
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
htmlheader.text += "<link rel=""apple-touch-icon"" href=""img/apple-touch-icon.png"" />" | |
htmlheader.text += "<link rel=""apple-touch-icon-precomposed"" href=""img/apple-touch-icon.png"" />" | |
htmlheader.text += "<link href=""http://fonts.googleapis.com/css?family=Ubuntu:400,500,700,400italic,700italic|Roboto+Slab:400,700"" rel=""stylesheet"" type=""text/css"" />" | |
htmlheader.text += "<link href=""http://fonts.googleapis.com/css?family=Zeyada"" rel=""stylesheet"" type=""text/css"" />" |
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
@* | |
* FILE : /App_Code/StringFunctions.cshtml | |
*@ | |
@functions | |
{ | |
@* | |
* FUNCTION : ENCODE STRING | |
* ************************ | |
* Description : takes an input string and returns it lower-cases and url-encoded |
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
@* | |
* FILE : /App_Code/HtmlHelpers.cshtml | |
*@ | |
@using System.Collections.Specialized | |
@helper RenderPagination(int pageNumber, int pageCount) | |
{ | |
@* | |
* HELPER : RENDER PAGINATION |
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 | |
@{ | |
NodeFactory nf = new NodeFactory(); | |
ContentNode n = (ContentNode)nf.LoadById(####); | |
<img src="@n.Path" alt="@n.MenuName" /> | |
} |
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.Collections.ObjectModel | |
@using Contensis.Framework.Web | |
@{ | |
// links in containing folder | |
ReadOnlyCollection<ContentNode> nodes = CurrentNode.Siblings(false); | |
// render - links if they exist | |
if(nodes.Count > 0) |
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 | |
@using System.Collections | |
@using System.Collections.ObjectModel | |
@using System.Text.RegularExpressions; | |
@{ | |
if (CurrentNode.Data.Property_SynchronisationSourceMasterContentID >= 0) | |
{ | |
int masterPageContentID = CurrentNode.Data.Property_SynchronisationSourceMasterContentID; | |
Node masterPage = null; |
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.Net.Mail | |
@{ | |
string email = "[email protected]"; | |
if(IsValidEmail(email)) | |
{ | |
// do something like submit the form and store the data, send an email or w/e | |
} | |
else |
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
<control name="News Listing Using Node Query" showInMenu="true" category="Dev Training" viewingGroup="1"> | |
<properties> | |
<nodeQuery name="NewsArticlesQuery" orderby="Property_DatePublished desc"> | |
<where property="Type" operator="IsEqualTo" value="News" /> | |
</nodeQuery> | |
</properties> | |
</control> | |
@using Contensis.Framework.Web; | |
@using System.Collections.ObjectModel; |
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
<control name="News Listing Using Node Query" showInMenu="true" category="Dev Training" viewingGroup="1"> | |
<properties> | |
<nodeQuery name="NewsArticlesQuery" orderby="Property_DatePublished desc"> | |
<where property="Type" operator="IsEqualTo" value="News" /> | |
<and property="Title" operator="Contains" value="@Request.Querystring.Keywords" /> | |
<and property="Data.TaxonomyCategories" operator="Contains" value="@Request.Querystring.category" /> | |
</nodeQuery> | |
</properties> | |
</control> |