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 query = Query.Where("Property_Path").StartsWith("/Products/Books/").Or("Property_Path").StartsWith("/Products/Toys/"); | |
var nodes = new NodeFinder().Find(query); | |
} | |
<h1>Search Results</h1> | |
<ul> | |
@foreach(var node in nodes){ |
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
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<mimeMap fileExtension=".vtt" mimeType="text/vtt" /> | |
<mimeMap fileExtension=".srt" mimeType="text/srt" /> | |
<mimeMap fileExtension=".aac" mimeType="audio/aac" /> | |
<mimeMap fileExtension=".oga" mimeType="audio/ogg" /> | |
<mimeMap fileExtension=".mp4" mimeType="video/mp4" /> | |
<mimeMap fileExtension=".webm" mimeType="video/webm" /> |
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
'----------------------------------- | |
' Contensis - Custom Code (Page PreLoad) | |
' | |
' Add to your base template | |
' | |
' Append the content version number to CSS Link URL to prevent caching | |
' e.g. <link href="/siteelements/assets/css/main.css?version=81002" rel="stylesheet" type="text/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
Dim imageNode As Node = GetNodeByContentId(imageContentId) | |
@If imageNode IsNot Nothing Then | |
@<div class="sys_article-image"><img src="@imageNode.FullPath" alt="@imageNode.Title" /></div> | |
End If | |
@Functions | |
Function GetNodeByContentId(contentId As Integer) As Node | |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<package id="004EF005-90F8-4824-9B59-E2BCED2C32C3" | |
name="MyNewPackage" | |
version="1.000" | |
displayName="My New Package!"> | |
<controls> | |
<control packagePath="/razor/Razor1.cshtml" name="Razor1" showInMenu="true" viewingGroup="1"> | |
<properties> | |
<text name="prop1" description="Razor1 Prop1" /> |
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
<root> | |
<configuration> | |
<custompropertydefinitions> | |
<custompropertydefinition name="OriginalWizardFolderID" typename="System.Int32" /> | |
<custompropertydefinition name="LGNL_Id" typename="System.String" /> | |
<custompropertydefinition name="LGNL_IsDefault" typename="System.Boolean" /> | |
</custompropertydefinitions> | |
<templates /> | |
<relationshiptypes /> | |
</configuration> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<module name="Test" moduleID="28949B9F-0383-4C01-8CFA-7B885DD49D56" version="1.0" sqlTableName="MyPackage" featureName="MyPackage"> | |
<references> | |
<reference name="CMS_API.WebUI.WebControls.SimpleControls.dll" /> | |
<reference name="CMS_API.CmsUI.WebControls.dll" /> | |
<reference name="CMS_API.WebUI.WebControls.dll" /> | |
<reference name="Telerik.Web.UI.dll" /> | |
</references> | |
<fieldset> | |
<field name="Text" type="ntext" options="CMSHtml, SaveToHtmlContent" /> |
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
if CurrentNode.Language= 1 then | |
Listing.title = "Find an event" | |
Listing.noresultstext = "Sorry, no events found" | |
else if CurrentNode.Language= 8 then | |
Listing.title = "Chwilio am ddigwyddiad" | |
Listing.noresultstext = "Dim digwyddiadau" | |
end if |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<module name="Test" moduleID="28949B9F-0383-4C01-8CFA-7B885DD49D56" version="1.0" sqlTableName="MyPackage" featureName="MyPackage"> | |
<references> | |
<reference name="CMS_API.WebUI.WebControls.SimpleControls.dll" /> | |
<reference name="CMS_API.CmsUI.WebControls.dll" /> | |
<reference name="CMS_API.WebUI.WebControls.dll" /> | |
<reference name="Telerik.Web.UI.dll" /> | |
</references> | |
<fieldset> | |
<field name="Text" type="ntext" options="CMSHtml, SaveToHtmlContent" /> |