Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Curlette rcurlette

View GitHub Profile
@rcurlette
rcurlette / ShowTemplateSource.asp
Created Mar 15, 2012
Tridion ShowTemplateSource Custom Page
View ShowTemplateSource.asp
<%
' Author: Robert Curlette
' Date updated: 15 March, 2012
Option Explicit
Response.Buffer = true
' Get All CT Source
Dim objTDSE : set objTDSE = CreateObject("TDS.TDSE")
Dim templateRootFolder
dim ctFolderUri, tbbFolderUri, ptFolderUri
@rcurlette
rcurlette / ListViewTcm.config
Created Apr 4, 2012
Tridion 2011 DataExtender URI Column Example config
View ListViewTcm.config
<?xml version="1.0"?>
<Configuration xmlns="http://www.sdltridion.com/2009/GUI/Configuration/Merge"
xmlns:cfg="http://www.sdltridion.com/2009/GUI/Configuration"
xmlns:ext="http://www.sdltridion.com/2009/GUI/extensions"
xmlns:cmenu="http://www.sdltridion.com/2009/GUI/extensions/ContextMenu">
<resources cache="true">
<cfg:filters />
<cfg:groups/>
</resources>
@rcurlette
rcurlette / TridionDataExtenderExample
Created Apr 16, 2012
Tridion DataExtender Example Starter Code
View TridionDataExtenderExample
using System;
using System.Diagnostics;
using System.IO;
using System.Xml;
using Tridion.ContentManager; // C:\Program Files (x86)\Tridion\bin\client
using Tridion.Web.UI.Core.Extensibility; // C:\Program Files (x86)\Tridion\web\WebUI\WebRoot\bin
// code samples used:
// http://www.sdltridionworld.com/community/2011_extensions/parentchangenotifier.aspx
// http://sdllivecontent.sdl.com/LiveContent/web/pub.xql?action=home&pub=SDL_Tridion_2011_SPONE&lang=en-US#addHistory=true&filename=AddingANewColumnToAListView.xml&docid=task_E4EFBE6E5CA24C01B2531FB15AE95AE2&inner_id=&tid=&query=&scope=&resource=&eventType=lcContent.loadDoctask_E4EFBE6E5CA24C01B2531FB15AE95AE2
@rcurlette
rcurlette / tridion-schema-embedded-link
Created Apr 25, 2012
Tridion Schema Embedded Link
View tridion-schema-embedded-link
@rcurlette
rcurlette / tridion-schema-embedded-link
Created Apr 25, 2012
Tridion Schema Embedded Link
View tridion-schema-embedded-link
View tridion-detail-article
<xsd:schema xmlns="http://www.curlette.com/tridion/schemas/article" xmlns:tcmi="http://www.tridion.com/ContentManager/5.0/Instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.curlette.com/tridion/schemas/article">
<xsd:import namespace="http://www.tridion.com/ContentManager/5.0/Instance"></xsd:import>
<xsd:include schemaLocation="tcm:3-26825-8"></xsd:include>
<xsd:annotation>
<xsd:appinfo>
<tcm:Labels xmlns:tcm="http://www.tridion.com/ContentManager/5.0">
<tcm:Label ElementName="heading" Metadata="false">Heading</tcm:Label>
<tcm:Label ElementName="subheading" Metadata="false">Sub-heading</tcm:Label>
<tcm:Label ElementName="summary" Metadata="false">summary</tcm:Label>
<tcm:Label ElementName="body" Metadata="false">Body</tcm:Label>
@rcurlette
rcurlette / Tridion-Razor-Detail-TBB.htm
Created Apr 25, 2012
Tridion Razor Detail Page Template TBB
View Tridion-Razor-Detail-TBB.htm
@functions{
public string GetSidebarCssClass(Models.ComponentPresentationModel sidebarCP){
var cssClass = "";
if(sidebarCP.IsFirst){
cssClass = "first";
}
return cssClass;
}
@rcurlette
rcurlette / Tridion-Razor-Detail-Component-Template-TBB.htm
Created Apr 25, 2012
Tridion Razor Detail Component Template TBB
View Tridion-Razor-Detail-Component-Template-TBB.htm
@functions {
public string GetTridionComponentLink(string ID, string linkText){
return "<tcdl:link />"; *@ to be implemented *@
}
}
<div class='span9' id='content'>
<div class='page-header'>
<h1>@Fields.heading</h1>
@rcurlette
rcurlette / Tridion-Razor-Sidebar-Component-Template-TBB.htm
Created Apr 25, 2012
Tridion Razor Sidebar Component Template TBB
View Tridion-Razor-Sidebar-Component-Template-TBB.htm
<div class="sidebar-article">
<h3>@Fields.Heading</h3>
<p>@Fields.Summary</p>
<a href="#">Link</a>
</div>
View Tridion-Razor-Index-PT.htm
<!DOCTYPE html>
<html lang="en">
@importRazor("/webdav/20%20Developer%20-%20Templates%20-%20TomTom%2Ecom/Building%20Blocks/System/Razor%20TBBs/Html%20Header%20Snippet.cshtml")
<body>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<!-- ct_index_bannerText here MAX=1 -->