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.Collections.Generic; | |
using Tridion.ContentManager.CommunicationManagement; | |
using Tridion.ContentManager.ContentManagement; | |
using Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
namespace Example.Events | |
{ |
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 Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
using Tridion.ContentManager.Publishing; | |
namespace Example.Events | |
{ | |
[TcmExtension("Publish Events Example")] | |
public class Events : TcmExtension |
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 Tridion.ContentManager; | |
using Tridion.ContentManager.Publishing; | |
using Tridion.ContentManager.Publishing.Resolving; | |
namespace Example.Resolvers | |
{ | |
/// <summary> | |
/// Example resolver to clear all items from publish transactions in certain publications. This can be used as is, or in combination with the |
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 Tridion.ContentManager.Templating.Expression | |
@using Tridion.ContentManager.ContentManagement | |
@using Tridion.Extensions.Mediators.Razor.Models | |
@* --------------- IDENTIFYING FIELDS ---------------------- *@ | |
@helper FieldStartMarker(string fieldExpression) | |
{ | |
var fn = new BuiltInFunctions(TridionHelper.Engine, TridionHelper.Package); | |
@fn.FieldStartMarker(fieldExpression) |
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
<Storages> | |
<StorageBindings> | |
<Bundle src="SearchDAOBundle.xml"/> | |
</StorageBindings> | |
<Storage Type="persistence" Id="defaultdb" dialect="MSSQL" Class="com.tridion.storage.si4t.JPASearchDAOFactory"> | |
<!--...Pool and DataSource elements as usual…--> | |
<Indexer Class="org.si4t.solr.SolrIndexer" DefaultCoreUrl="http://localhost:8080/solr/collection1" Mode="http" DocExtensions="pdf"/> | |
</Storage> | |
</Storages> |
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
<div class="row"> | |
<div class="col-sm-3"> | |
<!-- left nav here, uses 1/4 screen width--> | |
</div> | |
<div class="col-sm-9"> | |
<!-- main content, uses 3/4 screen width--> | |
<div class="row"> | |
<div class="col-sm-6"><!-- half width column layout --></div> | |
<div class="col-sm-6"><!-- half width column layout --></div> | |
</div> |
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
<h2>Full width image with aspect ratio of 3.3</h2> | |
<img width="100%" src="/cid/scale/1024x311/source/site/media/abc_tcm8-759.JPG"> | |
<h2>Half width image with default aspect ratio (1.62)</h2> | |
<img width="50%" src="/cid/scale/512x316/source/site/media/abc_tcm8-759.JPG"> | |
<h2>Fixed width image (150 px) with aspect ratio of 1</h2> | |
<img width="150px" src="/cid/scale/150x150/source/site/media/abc_tcm8-759.JPG"> | |
<h2>Full width image with custom css class</h2> | |
<img width="100%" class="my-css-class" src="/cid/scale/1024x632/source/site/media/abc_tcm8-759.JPG"> |
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
<h2>Full width image with aspect ratio of 3.3</h2> | |
@Html.Media(Model.Image, 3.3) | |
<h2>Half width image with default aspect ratio (1.62)</h2> | |
@Html.Media(Model.Image,"50%") | |
<h2>Fixed width image (150 px) with aspect ratio of 1</h2> | |
@Html.Media(Model.Image,"150px", 1) | |
<h2>Full width image with custom css class</h2> | |
@Html.Media(Model.Image,"100%","my-css-class") | |
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 Sdl.Web.Common.Interfaces; | |
using Sdl.Web.Common.Logging; | |
using Sdl.Web.Common.Models; | |
using Sdl.Web.Mvc.Controllers; | |
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Reflection; | |
using System.Web; | |
using System.Web.Mvc; |
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
//JSON data route (when DataController is the area "Data") | |
routes.MapRoute( | |
"JSON", | |
"json/{*pageUrl}", | |
new { controller = "Data", action = "Json" } | |
).DataTokens.Add("area", "Data"); |
OlderNewer