Giter Club home page Giter Club logo

t4utils's Introduction

forthebadge

Ben Margevicius; [email protected] Version 1.0.4 5/18/2016 The latest build is in the T4Utils directory. Or you can install node.js, npm update, then run gulp to execute gulpfile.js script. Warning: jshint is throwing a ton of errors.

Github source: https://github.com/FPBSchoolOfNursing/T4Utils/

#Usage:
1) Add a content type, modify the content layout, paste this at the top of your layout. 
2) Your code will go below the T4Utils Object

#Examples:
T4Utils.write("Some text"); 
var sectionTitle = T4Utils.getSectionInfo.sectionTitle(section);
var pathToRootArray = T4Utils.getSectionInfo.getRootPath(section);

#Namespace extending:
T4Utils.blah = T4Utils.blah || {};
T4Utils.blah.hello = function() {
	T4Utils.write("hello");   
}	
T4Utils.blah.hello(); //writes hello

#Adding an image from the media library:
document.write(T4Utils.brokerUtils.processT4Tag('<t4 type="media" id="123288" formatter="image/*"/>'));

#Try catch with console error 

try {}
catch (err) {
	T4Utils.console.error(err.message);
}

#Help Dox
HowTo: https://community.terminalfour.com/how-to/-/programmable-layouts/
V7.X API Dox: https://community.terminalfour.com/info/api/sitemanager-7.3/index.html
V8 API Dox: https://community.terminalfour.com/info/api/terminalfour-8.0/

t4utils's People

Contributors

bdm4 avatar joeleisner avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.