Skip to content

Instantly share code, notes, and snippets.

View NiclasCedermalm's full-sized avatar

Niclas Cedermalm NiclasCedermalm

  • Zendesk
  • Sweden
View GitHub Profile
@NiclasCedermalm
NiclasCedermalm / ViewController.swift
Created October 27, 2023 07:12
Example of using Zendesk SDK for Messaging together with the Classic SDK
import UIKit
import WebKit
import SupportSDK
import ZendeskCoreSDK
import ZendeskSDKMessaging
import ZendeskSDK
class ViewController: UIViewController, UINavigationControllerDelegate, WKNavigationDelegate {
@IBOutlet var webViewContainer: UIView!
@NiclasCedermalm
NiclasCedermalm / XPMExtensionSample
Last active October 2, 2018 20:31
Some sample code of a XPM GUI extension
// Below samples is Javascript code running on the CD side (part of the generated XPM bootstrap script included by the site)
// The code you invoke by using: Tridion.Web.UI.Editors.XPMCore.Utils.callContentWindowMethod(<name of the function>, ...)
//
Tridion.Type.registerNamespace("MyXPMCode.Handler");
MyXPMCode.Handler = {
/**
* Get all editable fields. Returns a list of objects with the following fields:
* - fieldId, fieldName, xpath, tagname