This file contains hidden or 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(!$UtilMethods.isSet($customPageAssetFieldVar)) | |
#set($customPageAssetFieldVar = 'pageAsset') | |
#end | |
#if(!$UtilMethods.isSet($pageUrlDummyField)) | |
#set($pageUrlDummyField = 'pageUrl') | |
#end | |
#set($pageAssetValue = $context.get($customPageAssetFieldVar)) | |
#if(!$UtilMethods.isSet($hostId)) | |
#set($hostId = $host.identifier) | |
#end |
This file contains hidden or 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(!$UtilMethods.isSet($fieldVar)) | |
#set($fieldVar = 'market') | |
#end | |
#if(!$UtilMethods.isSet($stName)) | |
#set($stName = 'Markets') | |
#end | |
#if(!$UtilMethods.isSet($sortOrder)) | |
#set($sortOrder = "${stName}.title") |
This file contains hidden or 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
## This is the code in the custom field | |
#set($fieldVar = 'market') ## This field's Velocity Var Name | |
#set($stName = 'Markets') ## The Structure Name to Pull From | |
#set($sortOrder = "${stName}.title") ## The order to sort the results in | |
#set($conditions = "") ## Sometimes it is neccessary to pass more conditions to the query | |
#set($limit = 0) ## The Query Limit | |
#set($valueField = "marketId") ## The Name of the field in the structure to get the value from | |
#set($lblField = "name") ## The name of the field in the structure to get the label from |
This file contains hidden or 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
package com.aquent.osgi; | |
import com.aquent.AquentResource; | |
import com.dotcms.repackage.org.apache.felix.http.api.ExtHttpService; | |
import com.dotcms.repackage.org.osgi.framework.BundleContext; | |
import com.dotcms.repackage.org.osgi.framework.ServiceReference; | |
import com.dotcms.repackage.org.osgi.util.tracker.ServiceTracker; | |
import com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Condition; | |
import com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.NormalRule; |
This file contains hidden or 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 final class Pushing { | |
public static final Pushing INSTANCE = new Pushing(); | |
private User sysUser = null; | |
private EnvironmentAPI envAPI = APILocator.getEnvironmentAPI(); | |
private BundleAPI bundleAPI = APILocator.getBundleAPI(); | |
private PublisherAPI pubAPI = PublisherAPI.getInstance(); | |
private UserAPI userAPI = APILocator.getUserAPI(); | |
private Pushing() { } |
This file contains hidden or 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
private void createStructure(String stVarName, Host stHost, JSONObject json) throws Exception { | |
Structure st = new Structure(); | |
st.setDefaultStructure(false); | |
st.setFixed(false); | |
st.setStructureType(Structure.STRUCTURE_TYPE_CONTENT); | |
st.setName(json.getString("name")); | |
st.setVelocityVarName(stVarName); | |
st.setHost(stHost.getIdentifier()); | |
try { |
This file contains hidden or 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
package com.aquent.jobs; | |
import java.io.ByteArrayInputStream; | |
import java.io.StringWriter; | |
import java.net.URL; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.List; |
This file contains hidden or 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 import="com.dotmarketing.util.Logger"%> | |
<%@ page language="java" contentType="text/html; charset=UTF-8" | |
pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>JVM Crash Test Dummy</title> | |
</head> | |
<body> |
This file contains hidden or 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
Contentlet Dependencies: | |
>> Add the Contentlet's Host | |
>> Add the Contentlet's Relationships | |
>> Foreach Related Contentlet + This Contentlet | |
>> Add the Host | |
>> Foreach Contentlet referenced in an Image or File Field of this Contentlet + this Contentlet | |
>> Add the Host | |
>> Add the Contentlet | |
>> Add the Folder | |
>> Add the Language |
NewerOlder