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
Option Strict On | |
Imports CMS_API | |
Imports Contensis.FormsModule.Controls | |
Module Module1 | |
Sub Main() | |
' Initialise Contensis | |
CMS_API.initsettings("localhost") | |
PostForm() |
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
<control name="Person Razor" showInMenu="true" viewingGroup="1"> | |
<properties> | |
<category name="Person"> | |
<text name="Title"> | |
<options> | |
<option label="Mr" value="Mr" /> | |
<option label="Mrs" value="Mrs" /> | |
<option label="Miss" value="Miss" /> | |
<option label="Ms" value="Ms" /> | |
<option label="Dr" value="Dr" /> |
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
<control packagePath="/razor/Razor1.cshtml" name="Razor1" showInMenu="true" viewingGroup="1"> | |
<properties> | |
<text name="prop1" description="Razor1 Prop1" /> | |
</properties> | |
</control> | |
<control isRazor="false" type="PackageTest.Control1, PackageTest.dll" name="Control1" displayMode="inline" showInMenu="true" viewingGroup="1"> | |
<properties> | |
<text name="prop1" description="Control1 Prop1" default="Hello" editor="multiple" /> | |
</properties> |
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"?> | |
<root xmlns:schemaLocation="file://contensis_settings.xsd" xmlns="http://tempuri.org/contensis_settings.xsd"> | |
<!--All values must be completed without spaces--> | |
<!--Contensis installations--> | |
<contensis_instance> | |
<settingsID>cms.company.co.uk</settingsID> | |
<alias>cms.company.co.uk</alias> | |
<dbconSERVER>Server01</dbconSERVER> | |
<dbconFAILOVERSERVER>Server02,1433</dbconFAILOVERSERVER> | |
<dbconDATABASE>cms-contensis_company</dbconDATABASE> |
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
GO | |
/****** Object: StoredProcedure [dbo].[bp_ContentUpdatedAndByWhom] Script Date: 03/10/2014 12:57:18 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROCEDURE [dbo].[bp_ContentUpdatedAndByWhom] | |
AS | |
BEGIN |
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
CREATE PROC [dbo].[bp_AliasList] | |
AS | |
SELECT | |
WP_ID as ItemID, | |
WPV_ID as ItemVersionID, | |
2 as ItemWorkflowType, | |
0 as ItemContentTypeID, | |
F_ID as ItemFolderID, | |
WP_Label as ItemLabel, |
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
<toolbar overrides="ContentFilterDropDown"> | |
<tools name="ContentFilterDropDown"> | |
<tool name="Aliases" tooltip="List of website Aliases"> | |
<params> | |
<param name="DialogueKey_StoredProcedure">bp_AliasList</param> | |
<param name="DialogueKey_Title">List of website Aliases</param> | |
<param name="DialogueKey_Extended">1</param> | |
</params> | |
</tool> | |
</tools> |
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
<!--PageDirs--> | |
<%@ Page language="VB" Inherits="CMS_API.Page" %> | |
<%@ Import Namespace="CMS_API.DataView" %> | |
<%@ Import Namespace="CMS_API" %> | |
<%@ Import Namespace="Contensis.Framework.Web" %> | |
<%@ Import Namespace="System.Data" %> | |
<%@ Import Namespace="System.Data.SqlClient" %> | |
<%@ Import Namespace="System.Web.Mail"%> | |
<%@ Register TagPrefix="contensis_controls" Namespace="CMS_API.Utilities.Controls" Assembly="CMS_API" %> | |
<%@ Register TagPrefix="CMS_API_WEBUI_WEBCONTROLS" Namespace="CMS_API.WebUI.WebControls" Assembly="CMS_API.WebUI.WebControls" %> |
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 the same URL is registered twice it will only output one reference. | |
' The URL is used as a key to prevent duplicates. | |
' Add a JavaScript file before the opening body tag | |
CurrentContext.Page.Scripts.Add("app.js") | |
' Add a JavaScript file before the closing body tag | |
CurrentContext.Page.Scripts.Add("app.js", ScriptLocation.BodyEnd) | |
' Add a JavaScript file before the opening body tag |