RSS feed
<< June 6, 2007 | Home | June 8, 2007 >>

Pebble favicon

This change allows you to specify a favicon on your pebble 2.1 blog. I simply make the change described below and add the following property in the "Properties" box on the plugins page.

blog.icon=http://www.qicboy.com/themes/user-default/assets/favicon.ico

The following is a diff of required changes to to the pebble webapp.

--- $CATALINA_HOME/webapps/pebble/WEB-INF/tags/page.tag.rel	2007-05-14 19:58:18.000000000 -0700
+++ $CATALINA_HOME/webapps/pebble/WEB-INF/tags/page.tag	2007-06-07 16:23:41.439391309 -0700
@@ -15,10 +15,14 @@
     <meta http-equiv="Content-Type" content="text/html; charset=${blog.characterEncoding}"/>
     <meta name="description" content="${blog.name}" />
     <meta name="abstract" content="${blog.description}" />
     <meta name="author" content="${blog.author}" />
     <meta name="generator" content="Pebble (http://pebble.sourceforge.net)" />
+    <c:set var="favicon" value='${pluginProperties.properties["blog.icon"]}' />
+    <c:if test="${not empty favicon}">
+    <link rel="shortcut icon" href="${favicon}" type="image/x-icon" />
+    </c:if>
     <title><c:choose><c:when test="${empty title}">${blog.name}</c:when><c:otherwise>${title} - ${blog.name}</c:otherwise></c:choose></title>
     <link rel="alternate" type="application/rss+xml" title="RSS" href="${blog.url}rss.xml" />
     <link rel="alternate" type="application/rdf+xml" title="RDF" href="${blog.url}rdf.xml" />
     <link rel="alternate" type="application/atom+xml" title="Atom" href="${blog.url}atom.xml" />
Tags :

Insert the save date in Word

I'm constantly publishing word documents. It's inevitable that someone collaborating with will show me a printed copy of that document. The problem with printing a document of course is that it can be modified after they've printed it. It can be difficult to tell if the document they're showing you was printed before of after you made changes to the document. That's why it can be handy to include a field that reflects some information about the state of the document when it was printed (like the date the document was saved). You can do this using "fields". Fields are placeholders for data that change. To insert a field that reflects the date the document was changed follow these simple steps.

  1. Select Insert | Field...
  2. Select "SaveDate" under "Field names"
  3. Select a format, I use yyyy-MM-ddTHH:mm:ss (W3C format)
  4. Press OK

Tags :
<< June 6, 2007 | Home | June 8, 2007 >>