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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
public class ProductPriceUtilities | |
{ | |
public static List<ProductPrice> GetAllPrices() | |
{ | |
//create a list to return |
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
public ProductPrice GetProductPrice(string tcmId) | |
{ | |
return GetAllPrices().Where(p => p.TcmId == tcmId).First(); | |
} |
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
<Item typeMapping="ComponentPresentation" itemExtension=".Xml" cached="true" storageId="MSSQL_01" /> |
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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tcmi="http://www.tridion.com/ContentManager/5.0/Instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:tcmse="http://www.tridion.com/ContentManager/5.1/TcmScriptAssistant" exclude-result-prefixes="productPrice tcm tcmse xsl xlink tcmi xsd xhtml" xmlns:productPrice="uuid:341ebd00-fcf9-46d3-b4db-c8402acf798b"> | |
<xsl:output method="xml" omit-xml-declaration="yes" version="1.0" indent="yes" cdata-section-elements="tcm_id product_tcm_id three_month_rate twelve_month_rate" /> | |
<xsl:template match="tcm:Component"> | |
<xsl:variable name="productPriceContent" select="./tcm:Data/tcm:Content/productPrice:Content" /> | |
<xsl:element name="product_price"> | |
<xsl:element name="tcm_id"> | |
<xsl:value-of select="@ID" /> |
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 System; | |
using System.Linq; | |
using System.Xml.Serialization; | |
using System.IO; | |
using System.Xml; | |
[Serializable] | |
[XmlRoot(ElementName = "product_price")] | |
public class ProductPrice | |
{ |
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
@echo off | |
net stop "Tridion Cache Channel Service" | |
net stop "Tridion Content Deployer" | |
net stop "Tridion Content Manager Publisher" | |
net stop "Tridion Content Distributor Transport Service" | |
net stop "Tridion Content Manager Business Connector" | |
net stop "Tridion Content Manager Search Host" | |
net stop "Tridion Content Manager Search Indexer" | |
net stop "Tridion Content Manager Service Host" |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Xml.Serialization; | |
/// <summary> | |
/// Summary description for ComponentLink | |
/// </summary> | |
[Serializable] |
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
public string GetContentByUrl(string Url) | |
{ | |
LoggerService.Debug(">>GetContentByUrl({0})", LoggingCategory.Performance, Url); | |
//Custom DXA Preview code added here | |
string retVal = string.Empty; | |
if ( | |
HttpContext.Current.Request.QueryString.Count > 0 && | |
HttpContext.Current.Request.QueryString["preview"] != null && | |
HttpContext.Current.Request.QueryString["pageUrl"] == Url | |
) |
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
<# | |
.SYNOPSIS | |
Lists all media items that are not linked to other items. Extended from original to allow the user to provide a location to search | |
.NOTES | |
Adapted from the script by Michael West | |
#> | |
function HasReference { | |
param( | |
$Item |