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" standalone="yes"?> | |
<trigger-types xmlns="http://www.fredhopper.com/schema/knowledge-model/trigger/type/1.0" xmlns:ns2="http://www.fredhopper.com/schema/knowledge-model/trigger/operation/1.0" xmlns:ns3="http://www.fredhopper.com/schema/knowledge-model/trigger/basetype/1.0" xmlns:ns4="http://www.fredhopper.com/schema/knowledge-model/trigger/1.0"> | |
<trigger-type basetype="text" url-param="am_ex_city" name="Contact - City"/> | |
<trigger-type basetype="text" url-param="sc_refererdomain" name="Session - Original Referrer"/> | |
<trigger-type basetype="text" url-param="sc_ua_isbot" name="Visitor - Search Engine?"> | |
<list-of-values multiselect="false"> | |
<value>true</value> | |
<value>false</value> | |
</list-of-values> | |
</trigger-type> |
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 (typeof $display === "object" && $display.getView().getId() === "EditorView") { | |
//Experience Manager is enabled | |
} |
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" standalone="yes"?> | |
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> | |
<code></code> | |
<message xml:lang="en-US">Unable to get a list of Trigger Types, please refer to the SmartTarget log files for more information</message> | |
</error> |
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
// get the triggers from ADF | |
ClaimStore claimStore = AmbientDataContext.CurrentClaimStore; | |
string triggers = AmbientDataHelper.GetTriggers(claimStore); | |
// make query builder and feed the triggers into it | |
var queryBuilder = new QueryBuilder(); | |
queryBuilder.Parse(triggers); | |
// set the publication id and SmartTarget region. Both are required to query | |
// for SmartTarget promotions |
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
<tcdl:region ID="Homepage Promotions" type="SmartTarget"> | |
<!-- TemplateBeginRepeat name="PromotionComponents" --> | |
@@RenderComponentPresentation()@@ | |
<!-- TemplateEndRepeat --> | |
</tcdl:region> |
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
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> | |
<%@ page language="java"%> | |
<%@ page import="java.net.URI" %> | |
<%@ taglib uri="cd_tags" prefix="tridion" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
<%@ page import="java.util.*" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> |
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
<span> | |
<!-- Start Query: { | |
"RegionID" : "Homepage Promotions", | |
"MaxItems" : 3, | |
"Promotions" : [ | |
{ | |
"PromotionID": "a20ecba0-2d3e-461f-aaf5-16f375ac9c90", | |
"PromotionTitle": "Standard Homepage Promotion", | |
"IncludedInPage": true, | |
"Items" : [ |