Folks that work with me know that I’m not a super-awesome programmer; I’m a front-end guy who dables with programs. I’m way more comfortable telling you what went wrong with your CSS in Internet Explorer 8 than what happened with your Razor template in Tridion 2011. Razor Mediator for Tridion is a blend of C# and .NET that just operates about two levels higher than where I am most of the time. As a result, I often spend time trying to figure out what information there is on a component and how to grab it. So a few weeks ago, I went from knowing that Razor could access TOM.NET to actually understanding it, and as a result I wrote a little debugging TBB to help other front-end guys looking to figure this thing out.
document, and started browsing through the available properties. Well, Google is faster than scrolling through a console, so the right answer turns out to be
document.referrer. But I stumbled upon something else which kind of blew my mind:
document.styleSheets. Yeah, your style sheets are in the DOM, and that’s not all…
I’m written in the past on how cool
contenteditable is, and what the potential usages are. Especially once you mix it with the
scoped attribute, you can turn
contenteditable into a pretty powerful component of an editing application of some sort. In fact, I have a few applications that I’ve been working on which called for exactly such a thing. But there’s no jQuery plugin for making stuff editable! And if you don’t have a plugin for making stuff editable, you surely don’t have one that makes utilizes the scoped attribute. Even worse, you certainly couldn’t have one that had a fallback for those browsers that didn’t support
scoped just yet. Well, we do now.
Not too long ago, I worked with Alex Klock on creating a Tridion GUI extension for a client. The GUI extension was for a document embedding service provided by Crocodoc1. Once I finished, I had to provide a training document for it. Soon after, the client wanted documentation on some other things. And then more things. Being one for
efficiency and optimization creative laziness, I found a way to make sure everyone gets the latest version of the same document. So I’d like to share a super nifty trick for embedding training documents into your Tridion implementation.
1 If you don’t know who Crocodoc is, you should rapidly become acquainted. Their API definitely is not one that sucks; it converts PDFs, PowerPoints, Excel documents, and Word documents into HTML (and soon to be HTML5) so that you can read the same document on any device with a screen, without nasty platform-based plugins.
On Tuesday the Supreme Court of the United States (SCOTUS) started having hearings about same-sex marriage laws. In response, the Human Rights Campaign decided to change their logo, and it’s taken Facebook by storm. They normally sport a blue and yellow logo, but for the last few days, it’s red and pink. That new logo has been spreading all over Facebook as people change their profile pictures to show that they support the right for gays to get married.
So what’s a Christian to do?
I’ve said before and I’ll say again that
This time, I want to combine what we’ve learned about CSS and
contenteditable with another HTML5 attribute called
scoped, and show you a fun little jQuery plugin that’s sure to make your day more interesting.
I’m a child of the 80′s. Every Saturday morning, between Teenage Mutant Ninja Turtles, X-Men, and GI-Joe I’d catch at least two or three Public Service Announcements from NBC where they’d teach me about bullying or doing my homework, and end it with, “The More You Know.”
The last few Tridion 2011 projects I’ve had have used Categories and Keywords pretty extensively. The Keyword class is relatively simple, but quirky. After discovering another extremely odd quirk a few days ago when I was debugging something for a client, I had to explain the craziness of the issue in our next status call. After I explained the issue and a few folks’ mouths were agape and they were scratching their heads, it was one of those moments where you just have to quote NBC: “Yep. The more you know”.
It’s probably not the most exciting thing that you could read about, but it’s definitely one of the cooler ones. If you haven’t heard of Crocodoc, you really should check it out. Crocodoc is an API that converts PDF and Microsoft Office Documents to HTML5. If that still doesn’t quite ring clear, allow me to rephrase; Crocodoc converts documents from something that requires another application (like a PDF reader or Microsoft Word) to read, into something that a web page can read. And it does a really stinking good job at it.
In a current project, we have a website that’s in both French and English which we’re transferring into Tridion 2011, using Razor Mediator. This is not my first bilingual website, and it definitely isn’t my first Razor project, either. However, it’s the first time I’ve had both at the same time. So what I’d like to share is how to solve a specific problem where you have content that could be hard-coded in your Template Building Block (TBB), but can’t, because it needs to be translated.
Keith Miller,our pastor at Missio Dei Fellowship, wanted to take a month off to work on his doctoral thesis and generally get a much needed break from preaching. In order to afford him that break, January became, ‘guest speaker’ month; every Sunday either someone from either the church conference or the congregation delivered a sermon. The last Sunday in January was my turn, so I chose Grace.