<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cfalzone &#187; DotCMS</title>
	<atom:link href="http://www.cfalzone.com/blog/tag/dotcms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cfalzone.com/blog</link>
	<description>Christopher Falzone's Blog</description>
	<lastBuildDate>Thu, 15 Jul 2010 19:38:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running DotCMS in Windows and Memory</title>
		<link>http://www.cfalzone.com/blog/2010/07/dotcms-windows-memory/</link>
		<comments>http://www.cfalzone.com/blog/2010/07/dotcms-windows-memory/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 19:38:59 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[DotCMS]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=257</guid>
		<description><![CDATA[Just a quick post today.  A few months back we decided to increase the RAM on our dotCMS servers to 12Gb.  We were starting to notice some performance lags in our boxes that only had 4Gb.  In doing this we also had to make the switch to 64bit Windows.  Everything went very smoothly, albeit we [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/blog/wp-content/uploads/2010/07/WrapperLogo.png" alt="Java Service Wrapper Logo" style="float:right" />  Just a quick post today.  A few months back we decided to increase the RAM on our dotCMS servers to 12Gb.  We were starting to notice some performance lags in our boxes that only had 4Gb.  In doing this we also had to make the switch to 64bit Windows.  Everything went very smoothly, albeit we did not see the performance increase we were hoping for.</p>
<p>Today, while talking with a dotCMS support agent, he made us aware that Java Service Wrapper that dotCMS uses to let you install dotCMS as a service in windows is a 32bit application and as such only allows windows to access 4Gb of memory.  On top of this, the 64bit windows version of this third-party application is not freely available.  The Java Service Wrapper that ships with dotCMS is developed by a company called Tanuki Software.  Here is a link to the software page:  <a href="http://wrapper.tanukisoftware.com/doc/english/download.jsp">http://wrapper.tanukisoftware.com/doc/english/download.jsp</a></p>
<p>If you scroll down to the bottom of the page you will note note #2:</p>
<p><em>*2: 64-bit Windows versions of the Java Service Wrapper are not currently being made available in the Community Edition.</em></p>
<p>The Community Edition is what dotCMS ships with.  Moral of the story, if you are using dotCMS in windows and want to access more than 4Gb or RAM, you need to purchase a Standard Version License from Tanuki.  I&#8217;ll post more after we&#8217;ve made the upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2010/07/dotcms-windows-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edinboro University</title>
		<link>http://www.cfalzone.com/blog/2010/05/edinboro-university/</link>
		<comments>http://www.cfalzone.com/blog/2010/05/edinboro-university/#comments</comments>
		<pubDate>Fri, 07 May 2010 21:07:27 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[DotCMS]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=195</guid>
		<description><![CDATA[I manage the website for Edinboro University. At Edinboro I maintain the DotCMS servers and provide support for our nearly 300 users. I also write web-based applications using JAVA, Perl, and PHP. Technologies: DotCMS, PHP, Perl, Java URL: http://www.edinboro.edu]]></description>
			<content:encoded><![CDATA[<p>I manage the website for Edinboro University. At Edinboro I maintain the DotCMS servers and provide support for our nearly 300 users. I also write web-based applications using JAVA, Perl, and PHP.</p>
<p>Technologies:  DotCMS, PHP, Perl, Java<br />
URL:  <a href="http://www.edinboro.edu">http://www.edinboro.edu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2010/05/edinboro-university/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live Blogging &#8211; DotCMS Bootcamp Day 2</title>
		<link>http://www.cfalzone.com/blog/2010/04/dotcmsbc10-2/</link>
		<comments>http://www.cfalzone.com/blog/2010/04/dotcmsbc10-2/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 13:08:27 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[DotCMS]]></category>
		<category><![CDATA[bootcamp]]></category>
		<category><![CDATA[liveblogging]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=141</guid>
		<description><![CDATA[Watch this space for updates today. I will be missing the first session today  But stay tuned at 11:15 for updates from the Plugins Session. Last night we decided to head to the 8 oz Burger for dinner.  There are not many Burger Joints I would feel comfortable getting a raw burger at, but this [...]]]></description>
			<content:encoded><![CDATA[<p>Watch this space for updates today.</p>
<p>I will be missing the first session today <img src='http://www.cfalzone.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   But stay tuned at 11:15 for updates from the Plugins Session.</p>
<p>Last night we decided to head to the 8 oz Burger for dinner.  There are not many Burger Joints I would feel comfortable getting a raw burger at, but this place was top notch.  Very good burgers.<span id="more-141"></span></p>
<p><strong>9:30 &#8211; Surprise &#8211; I did get to attend the first session &#8211; Super Widget</strong></p>
<ul>
<li>Maria is presenting and they are setting everything up still</li>
<li>&#8220;Planning for flexible and reusable pulls&#8221;</li>
<li>Arnaud is presenting as well</li>
<li>Purpose of a widget
<ul>
<li>Minimize redundancy</li>
<li>Facilitate pulls for content editors</li>
<li>Permissioning
<ul>
<li>Widgets are Structures which have granular permissions</li>
<li>It is the admin&#8217;s job to make sure people can&#8217;t screw things up</li>
</ul>
</li>
</ul>
</li>
<li>Common Uses
<ul>
<li>Content listing</li>
<li>Detail Pages</li>
<li>Random Pulls</li>
<li>UI for a Macro</li>
</ul>
</li>
<li>Widgets Overview
<ul>
<li>Can be added on any container</li>
<li>Parameters &#8211; fields on widget structure</li>
<li>Widget Code &#8211; Velocity code to be executed</li>
</ul>
</li>
<li>Simple Widget -vs- Custom Widgets
<ul>
<li>Simple:  Just a title and the code &#8211; used forms, detail page, sitemap</li>
<li>Custom:  Parameters &#8211; used for pulls, reusable</li>
</ul>
</li>
<li>When to create a widget
<ul>
<li>Rule of Thumb 1 &#8211; one widget structure per content structure</li>
<li>What Content do you need? -&gt; create the structure (ex. news structure)</li>
<li>How does this need displayed? -&gt; create the widget (ex. news listing widget)</li>
<li>Checklist for creating a widget
<ul>
<li>Wireframes as a foundation for structures</li>
<li>Identification of *all* dynamic pulls</li>
<li>Definition of Parameters</li>
</ul>
</li>
</ul>
</li>
<li>Arnaud is showing several examples, you can see some of these on the demo site:  <a href="http://demo.dotcms.org/">http://demo.dotcms.org/</a></li>
<li>widget structure -vs- widget content
<ul>
<li>You create the structures and for each structure you can create the content items for your users to use.</li>
</ul>
</li>
<li>Arnaud is wrapping up time for questions</li>
<li>Maria is showing us &#8212; when users change their minds &#8212; give them the parameters to change their minds.  If they decide they want the image bigger/smaller then they can change the parameters, if this was a macro or just a contentlet you would be modifying the code.</li>
<li>Have a show checkbox for each of the fields so if they don&#8217;t want an image they can turn them off</li>
<li>If you upgraded from pre-widgets then you didn&#8217;t get things like the simple widget and the pre built custom widgets.  You will get these in 1.9 when you upgrade.  Or if you want to see them now you can always copy from the demo site or deploy a starter site of your own,</li>
<li>If you started post-widgets then you get those things by default to start with</li>
<li>field names:  make them useful for your user not you.  don&#8217;t do fields like class names and so forth, just make a radio narrow/wide</li>
<li>Maria is demoing creating a structure</li>
<li>Now she is showing editing one to add a sort by field
<ul>
<li>Have the content structure open in another window while you are editing so you can see the field names</li>
</ul>
</li>
<li>Use line dividers to separate fields into groups:  Pull Options, Display, RSS Feed Options</li>
</ul>
<p><strong>11:15 &#8211; Plugin Training Part 1 &#8212; don&#8217;t know how well I will do here, lots of information and I want to play with it <img src='http://www.cfalzone.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   We&#8217;ll see how I do</strong></p>
<ul>
<li>Jason Tesser is presenting &#8230;</li>
<li>&#8220;How to extend and add functionality to the dotCMS&#8221;</li>
<li>Lots of flexibility and power, be careful, you can brick your system</li>
<li>Who can use plugins?
<ul>
<li>Sys Admins &#8211; Configuration</li>
<li>Java Developers &#8211; View tools and so forth</li>
<li>Web Developers &#8211; Macros/widgets and so forth</li>
</ul>
</li>
<li>Deploying  a plugin means stoppin/starting the system</li>
<li>What can we do in plugins
<ul>
<li>Macros &#8212; New or overriding existing ones the right way
<ul>
<li>This is the only way to really override an existing dotCMS macro</li>
</ul>
</li>
<li>Config</li>
<li>tinyMCE Config and adding plugins for tinyMCE
<ul>
<li>It is just some HTML but it is in a JSP so you can do things like show different things for different users</li>
</ul>
</li>
<li>Velocity Tools</li>
<li>Custom Java
<ul>
<li>Override DotCMS java and libraries</li>
<li>New tooling, servlets, web services</li>
</ul>
</li>
<li>JSP</li>
<li>Backend Tooling
<ul>
<li>Velocity / Struts/ or JSP Portlets</li>
</ul>
</li>
</ul>
</li>
<li>What&#8217;s really important about plugins for Jason &#8212; Understanding How it works and what it can do</li>
<li>Plugin Idea:  Create a UI to control tinyMCE based on user roles.</li>
<li>You don&#8217;t have to understand the java stack to create a viewtool.  All the API&#8217;s are there to do it for you.  It is very easy, not a scary thing</li>
<li>Plugin Idea:  Create a plugin to pull in your SIS or an external Database system as back-end tooling &#8211; portlet</li>
<li>Query Test Tool in 1.9 beta is a JSP portlet.</li>
<li>Eclipse is not that scary &#8212; just take some time to learn it</li>
<li>Example of an external system brought in via iframe and velocity portlet from @fienen:  <a href="http://ow.ly/1ySwb">http://ow.ly/1ySwb</a></li>
<li>How do they work?
<ul>
<li>Build/Compile
<ul>
<li>One of the primary weaknesses to deploying plugins you have to get to the filesystem</li>
<li>You need root access to do this</li>
<li>This is not changing in 1.9 but in 2.0 it might with OSGi</li>
</ul>
</li>
<li>Deploy
<ul>
<li>By default plugins are deployed in reverse alpha</li>
<li>Plugins can overload themselves if you are not careful</li>
<li>You can specify the order by modifying the plugin configurations</li>
<li>Plugin names are the folders they are stored in and must be unique.  Of course you can&#8217;t create 2 folders with the same name, so that won&#8217;t be too hard to stick to</li>
<li><strong>Don&#8217;t just delete a plugin without undeploying it first!!!</strong></li>
<li>Your files are put in a JAR file and dropped in a place with your Libraries</li>
<li>in 1.7 tomcat was modified for the deploy to work &#8212; DotCMS 1.9 is totally different in this respect.  DotCMS can now deploy to potentially any other container as a war file.</li>
</ul>
</li>
<li>Configuration</li>
<li>Properties</li>
</ul>
</li>
<li>dotCMS Architecture
<ul>
<li>Current Status
<ul>
<li>DotCMS is not a new puppy.  This is why the old stuff is still around like old struts and hibernate.  The effort to change this would be huge and not beneficial to us as the customers.  What would be the value add?</li>
<li>DotCMS 1.7 has this problem &#8212; everything is cached in memory so it does not have to hit the DB.  Where this falls apart is when there is not enough room in memory it has to hit the db and this is expensive.</li>
<li>In 1.9 there is a new velocity library because we need the cache on disk to combat this problem</li>
<li>Jason is laughing about his use of little guys.  He calls every little component in dotcms a guy</li>
<li>These changes made to velocity engine are looking at going back to the velocity project</li>
</ul>
</li>
<li>Future Development &#8211; New Architecture
<ul>
<li>Possibly upgrade Hibernate</li>
<li>Not going to upgrade struts</li>
<li>The code has been around a long time.  Some of it is better than others.   The older stuff doesn&#8217;t practice good MVC.  But changing this is really hard and again, what is the value for the customer?</li>
</ul>
</li>
<li>Legacy -vs- New Code
<ul>
<li>Morale of the story is use the APIs</li>
</ul>
</li>
</ul>
</li>
<li>Alright the intro is over &#8212; stay tuned for the next session for part 2 for some depth into this info.</li>
</ul>
<p><strong>12:45 &#8211; Time for Lunch.  I am starvin!</strong></p>
<p><strong>2:15 &#8211; Plugin Training Part 2</strong></p>
<ul>
<li>Jason is reviewing part 1 now</li>
<li>Plugin Development
<ul>
<li>Viewtools
<ul>
<li>This is where you add new functionality for your pages.</li>
<li>When it can&#8217;t be done in just velocity.</li>
<li>When do you use viewtool or struts or Macro/Velocity?
<ul>
<li>It can be done many ways</li>
<li>Velocity is for spitting out content on a page</li>
<li>Computation and work is done in a viewtool</li>
<li>When it is inconvenient to do a viewtool then you need struts</li>
<li>When you do not really need to send to a page, just do some action.  Velocity always needs to go to a page</li>
<li>Jason can only think of using struts or servlets for handling a form</li>
</ul>
</li>
</ul>
</li>
<li>Macros</li>
<li>Struts / Servlet
<ul>
<li>Struts gives you the message guy for handling errors and validation and so forth</li>
</ul>
</li>
<li>Portlets</li>
</ul>
</li>
<li>Jason is showing us the hello world view tool</li>
<li>&#8220;Let your plugin guy handle that&#8221;</li>
<li>Viewtool Scope:
<ul>
<li>Request &#8212; every request he dies</li>
<li>Session &#8212; every web session he dies</li>
<li>Application &#8212; only one ever</li>
</ul>
</li>
<li>Now he is showing the guy in action</li>
<li>&#8220;Always a good idea to throw velocity code in a simple widget&#8221;</li>
<li>plugins.xml is where you set the order your plugins are deployed is set.</li>
<li>If your plugin configuration is malformed it is going to deploy malformed</li>
<li>ant -p &#8212; displays all the ant targets</li>
<li>there is a .bat .sh script to help you deploy your plugins in the bin directory</li>
<li>You can run ant directly from eclipse by right-clicking the main build.xml &gt; run as</li>
<li>Jason is going over the different Config files you can alter in plugins
<ul>
<li>Hiberbate mapping files &#8212; skipping these with a brief explanation of what they are and why</li>
<li>dotmarketing-config-ext.properties &#8212; modifies the main dotcms configuration</li>
<li>dwr-ext.xml &#8212; AJAX Library configuration &#8211; exposes Java classes to Javascript (Jason doesn&#8217;t like this &#8212; he uses jQuery load some html method)</li>
<li>Language-ext.properties &#8212; Language Variables for your portlet</li>
<li>liferay-portlet-ext.xml</li>
<li>portal-ext.xml</li>
<li>portlet-ext.xml   &#8212; all 3 for deploying portlets</li>
<li>macros-ext.vm &#8212; there is where you create macros</li>
<li>plugin-controller.properties &#8212; this is where you wire hooks like preContentletHooks.  There are a lot of uses for this</li>
<li>plugin.properties &#8212; allows you to have properties for your plugins</li>
<li>struts-cms-ext.xml &#8212; for struts on the front-end</li>
<li>struts-ext.xml &#8212; for struts on the back-end</li>
<li>system-ext.properties &#8212; configuration for the system, velocity stuff</li>
<li>portal-ext.properties &#8212; ldap config and so forth</li>
<li>tiles-defs-ext.xml &#8212; struts and portlet stuff</li>
<li>toolbox-ext.xml &#8212; for wiring your viewtools</li>
<li>urlrewrite-ext.xml &#8212; rules for the url rewrite filter</li>
<li>web-ext.xml &#8212; servlets and filters config</li>
</ul>
</li>
<li>It&#8217;s always easier to edit than reuse &#8212; Jason had said this 3 times now <img src='http://www.cfalzone.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Nice plug from Jason for the IRC channel in #dotcms on freenode</li>
<li>Jason is going to show us the scripting plugin
<ul>
<li>The scripting plugin allows you to access all the java classess on the classpath via the language of your choice &#8212; no plugin no viewtool quick and easy</li>
<li>Showed us how to get your user from a viewtool &#8212; look at the plugin it is not as easy as you think, but it isn&#8217;t too much to get it.</li>
<li>Showing us how he modified the CMS Filter
<ul>
<li>Created his own filter extending the dotcms CMS Filter</li>
<li>Skip processing and move on if you are a php file</li>
<li>Otherwise call the super.doFilter()</li>
</ul>
</li>
</ul>
</li>
<li>All done folks &#8212; see you next year</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2010/04/dotcmsbc10-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an iCal Feed from DotCMS Content / Calendar</title>
		<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/</link>
		<comments>http://www.cfalzone.com/blog/2009/09/ical-dotcms/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 19:47:35 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[DotCMS]]></category>
		<category><![CDATA[Edinboro University]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[ical]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=81</guid>
		<description><![CDATA[First off I apologize for be a slacker and not having time to post anything on this blog for quite some time. I&#8217;d like to say that I&#8217;m going to get better at it, but I probably won&#8217;t! This past week I needed to get an iCal feed created for my DotCMS Calendar.  What I [...]]]></description>
			<content:encoded><![CDATA[<p>First off I apologize for be a slacker and not having time to post anything on this blog for quite some time.  I&#8217;d like to say that I&#8217;m going to get better at it, but I probably won&#8217;t!</p>
<p>This past week I needed to get an iCal feed created for my <a href="http://www.edinboro.edu/calendar">DotCMS Calendar</a>.  What I came up with might not be the most elegant solution, but it does the trick for Outlook and Google Calendars at least.  So I thought I&#8217;d post up my process &#8230;</p>
<p>First I started by creating an HTML page in DotCMS, and choosing the Blank Template.  The next thing I did was create a new contentlet.  The important thing to remember about this step is to name your contentlet something that is going to be ewasy to remember.  The reason for this is that doing this will break the DotCMS Page Editor.  You&#8217;ll see why a little latter.</p>
<p>Now for the code:</p>
<pre>$response.setContentType('text/calendar')
$response.setHeader("Content-disposition","attachment;filename=calendar.ics")
#set($today = $UtilMethods.now())
#set($fromDate = $date.format("MM/dd/yyyy", $today))
#set($endDate = $UtilMethods.addDays($today, 30))
#set($toDate = $date.format("MM/dd/yyyy", $endDate))
#pullContent("+structureInode:135155  +date1:[01/01/1900 00:00:00
TO $toDate 23:59:59] +date2:[$fromDate 00:00:00 TO 01/01/3000 00:00:00]
+languageId:1 +deleted:false +live:true" '0' 'date1')
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
CALSCALE:GREGORIAN
X-WR-TIMEZONE:America/New_York
X-WR-CALNAME:EUP Events
BEGIN:VTIMEZONE
TZID:US-Eastern
LAST-MODIFIED:19870101T000000Z
BEGIN:STANDARD
DTSTART:19971026T020000
RDATE:19971026T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19971026T020000
RDATE:19970406T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE
#foreach($content in $list)
BEGIN:VEVENT
DTSTAMP:$date.format("yyyyMMdd'T'HHmmss", $content.startDate)
DTSTART:$date.format("yyyyMMdd'T'HHmmss", $content.startDate)
DTEND:$date.format("yyyyMMdd'T'HHmmss", $content.endDate)
SUMMARY:$!content.title
UID:$!content.identifier
PRIORITY:3
CATEGORIES:MEETING
LOCATION:Edinboro
END:VEVENT
#end
END:VCALENDAR</pre>
<p>Let me pick this apart section by section.  First off we have what I like to call, &#8220;The Magic&#8221; of this whole thing:</p>
<pre>$response.setContentType('text/calendar')
$response.setHeader("Content-disposition","attachment;filename=calendar.ics")</pre>
<p>What this little bit of code does is set content type for the page, and tells the browser that this should be downloaded, not displayed in the screen.  It also tells the browser exactly what the filename should be that they are downloading.  This allows us to set the extension of .ics.</p>
<pre>#set($today = $UtilMethods.now())
#set($fromDate = $date.format("MM/dd/yyyy", $today))
#set($endDate = $UtilMethods.addDays($today, 30))
#set($toDate = $date.format("MM/dd/yyyy", $endDate))
#pullContent("+structureInode:135155  +date1:[01/01/1900 00:00:00
TO $toDate 23:59:59] +date2:[$fromDate 00:00:00 TO 01/01/3000 00:00:00]
+languageId:1 +deleted:false +live:true" '0' 'date1')</pre>
<p><em>Note:  I had to break up the #pullContent into 3 lines so it would fit on the page, this should be one line.</em></p>
<p>This bit of code is probably fairly familiar to most of you reading this.  Basically it is pulling the events from the last 30 days.  You will of course need to make sure you change the structureInode to match what your Event Structure&#8217;s Inode is.</p>
<pre>BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
CALSCALE:GREGORIAN
X-WR-TIMEZONE:America/New_York
X-WR-CALNAME:EUP Events
BEGIN:VTIMEZONE
TZID:US-Eastern
LAST-MODIFIED:19870101T000000Z
BEGIN:STANDARD
DTSTART:19971026T020000
RDATE:19971026T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19971026T020000
RDATE:19970406T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE</pre>
<p>This is the begining of the iCal Code.  It defines the Time Zone, the name, the version, and various other tidbits.  I found it was necessary to put in the vTimeZone element for the calendar to show up in Google in the right times.  I also found a nifty reference of the iCal Format <a href="http://www.kanzaki.com/docs/ical">Here</a>.</p>
<pre>#foreach($content in $list)
BEGIN:VEVENT
DTSTAMP:$date.format("yyyyMMdd'T'HHmmss", $content.startDate)
DTSTART:$date.format("yyyyMMdd'T'HHmmss", $content.startDate)
DTEND:$date.format("yyyyMMdd'T'HHmmss", $content.endDate)
SUMMARY:$!content.title
UID:$!content.identifier
PRIORITY:3
CATEGORIES:MEETING
LOCATION:Edinboro
END:VEVENT
#end
END:VCALENDAR</pre>
<p>The rest of the code is fairly straight foward I think.  Loop through each contentlet and create a vEvent item then bookend with your ending vCalendar.  The hard part is the Time Format.  I found putting in the Timezone here did not work in Google, perhaps you will have better luck.</p>
<p>Now, I know this isn&#8217;t perfect.  I haven&#8217;t put in descriptions and nice locations and all that.  This was a quick and dirty write-up to get what I needed done.  I hope it benefits you, if you have any questions or suggestions I&#8217;d love to hear from you in the comments.</p>
<p>Where to go from here?  I would love to see this macroized and/or wigitized and put into a plugin.  I hope some day I have time to beef it up and learn more about what I can and can&#8217;t do with iCal.  I would also like to put in the ability to give iCal Feeds for specific categories and tags.  Ultimately, I would like to see the iCal download servelet that already exists in DotCMS fleshed out to this natively within the CMS.</p>
<p>Please if you have any suggestions on how to make this better or any improvements you&#8217;ve made on this, I&#8217;d love to hear about it in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2009/09/ical-dotcms/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DotCMS Bootcamp</title>
		<link>http://www.cfalzone.com/blog/2009/02/dotcms-bootcamp/</link>
		<comments>http://www.cfalzone.com/blog/2009/02/dotcms-bootcamp/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 16:00:36 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[DotCMS]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Open Minds]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=71</guid>
		<description><![CDATA[Last week saw me in Miami at the DotCMS Open Minds Conference, Boot Camp.  DotMarketing&#8217;s approach to the conference this year was slightly different this year.  The focus was more on Training whereas last year was more like demo.  I&#8217;d have to say that I really enjoyed the conference. Tuesday, Feb 3 My journey to [...]]]></description>
			<content:encoded><![CDATA[<p>Last week saw me in Miami at the DotCMS Open Minds Conference, Boot Camp.  DotMarketing&#8217;s approach to the conference this year was slightly different this year.  The focus was more on Training whereas last year was more like demo.  I&#8217;d have to say that I really enjoyed the conference.</p>
<h2><strong>Tuesday, Feb 3</strong></h2>
<p>My journey to Miami started a day before the conference.  I couldn&#8217;t get a flight in the day of the conference.  It was fairly uneventful (that&#8217;s good!).  The Hotel this year was the Mayfair.  A little more ritzy than the Sonata, but still very nice.  I ended up eating at the Johnny Rockets.</p>
<h2>Wednesday, Feb 4</h2>
<p>The conference didn&#8217;t officially start until the registration/welcome party at 6PM.  Since I was there quite early I decided to jump over to DotMarketing Headquarters about 1PM.  DotMarketing was nice enough to throw us Jason Tesser for some informal pre-conference training.</p>
<p>We talked a lot about the bits and pieces of DotCMS.  Here are some take-aways from that conversation:</p>
<ul>
<li>Lucene queries will no longer require the live, deleted, and language parameters.  The DotCMS code tries to be smart enough to put those in based on where you are in the system.  This should simplify the lucene quries in our code considerably.</li>
<li>DotMarketing plans on hitting the Content Browser Search functionality with a hammer very soon.  They want to add a more intuitive search.  The idea is to make the search much more like a Google search.  A very simple one field search with advanced option and more intuitive operators.</li>
<li>They removed multicast traffic in clustering.  This is coming in the next version, but it is a major improvement on the way clustering works.  At Edinboro I decided to nix the cluster because of the multicast issues on campus.</li>
</ul>
<p>After the informal training we went back to the Hotel for the opening party.  I got to meet back up with Fienen and meet some of the new folks from the DotCMS Community.  A big welcome to IPFW who just made the decision to go with DotCMS and had a considerable force at the conference.  After the party we (Jason, Fienen, and some others) headed to the Knife for dinner.  The Knife was a very nice place to eat.  It is an Argentinian Steak House Buffet kinda thing.  Very Nice!</p>
<p>After dinner I had mega troubles with my laptop&#8217;s wireless.  So that&#8217;s why this post is coming a little late.</p>
<h2>Thursday, Feb 5</h2>
<p>Thursday started with breakfast at the Bookstore in the Grove.  The first session of the day was on structures and relationships.  I already knew much of the content here, but for the new guys this was a lot of bricks and mortar kind of training on the Back-End of DotCMS.  I did manage to grab a couple morsels of goodness from the session though:</p>
<ul>
<li>Relationships have an order field but in order to get the #PullRelatedContent macro to sort on that field you have to first save the order in the back-end.  Then, if you leave the sort parameter blank your results will be sorted by that field.  This is something I had been wondering how to do for some time now.</li>
<li>You can also pass a lucene query to the macro.  Allowing you to drill down the results to just what you need.  I couldn&#8217;t think of an immediate use for this, but I&#8217;ll tuck it away for a rainy day.</li>
</ul>
<p>The rest of the day, I spent with Jason Tesser in a one-on-one session.  This is the true value of the DotCMS conference.  I am really happy to see a company that will give you one-on-one attention.  Jason and I talked a lot about the nuts and bolts of the Content API and DotConnect Java Classes.  I learned how to use the DotConnect Class to retrieve SQL results from my server and then use the Content API to update and insert new content into DotCMS structures.  Very, very valuable stuff.</p>
<p>After the show a few of had a specialized training on administration of DotCMS.  We learned that you can use JMX to debug some of the more interesting problems may run into with cache and other things in the system.  It looked like really cool stuff, but it was a bit over my head.  Andres did a great job of showing us what can can&#8217;t be done though.</p>
<p>I ended up going with a rather large group to a sushi place for dinner.  I am not overly obsessed with sushi, but I went along and the place we went to was very nice.  I had a fried shrimp/lettuce/rice roll that was actually very good.</p>
<h2>Friday, Feb 6</h2>
<p>Breakfast was at the bookstore again.  We started the day off with Plugins Training.  The training was very well laid out and was my main target for the conference.  Jason covered a ton of information about what you can do with plugins and how they work.  I wish there was more actual code, but when you are talking to a large audience that kind of thing would&#8217;ve been hard to pull off. I can&#8217;t say how stoked I am about the addition of plugins to the DotCMS product.</p>
<p>One of the cool things you can do with plugins is move all your configuration and custom macros out of DotCMS.  This way if you ever need to restore a server or do an upgrade, you can just stick your plugin back in and you are essentially up and running.  I plan on doing this as my first plugin and hope to have a good post about how it&#8217;s all done.  That is, or corse, if Fienen doesn&#8217;t beat me to it <img src='http://www.cfalzone.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The last half of the day was on Ajax.  While I was not overly interested in the ajax stuff, it was interesting to see some of the cool stuff that DotCMS can do there.</p>
<p>After the Ajax session we moved into the Focus Group / Roadmap / Deiscuss / Wrapup portion of the conference.  I can&#8217;t tell you how impressed I am with the way DotCMS is developing.  Here is what is in store for us in the coming year:</p>
<ul>
<li>Enterprise Offeringe -vs- Open Source Offerings:  The idea is is to not turn DotCMS into crippleware.  There are quite a few CMSs that go the crippleware route.  In other words, you can have the software for free, but to really get the most out of it you have to pay.  DotCMS is going pretty much the opposite route.  The open source product will always be fully featured.  (Actually, it will most likely be more featured than the Enterprise. )  The Enterprise version will be the hardened product with better supoprt.</li>
<li>Plugins, Plugins, Plugins:  Plugins give us a major shift in the way customization of DotCMS is handled.  From the simplest stuff like your configuration or a small macro, to the big stuff like new portlets.   Plugins also push forward community growth.  We hope to see the infamous DotCMSForge this year.  To add to this DotMarketing is also going to be putting on a plugin competition to get the community start on making plugins.</li>
<li>1.7:  What was going to be 1.6.5c is now going to be 1.7.  With this version, slated to come out in the next few weeks, we will see the addition of plugins.  Also, as a first plugin DotMarketing has created Front Ent Content Submition.</li>
<li>1.8: With 1.8 we will see fater releases (to the tune of 1 every 3-4 months).  1.8 will also add the concept of Binary Content.  This will allow us to dirrectly attach files to content along with exporters.  This esentially turns DotCMS into a digital asset / document management system.  Also due for 1.8 is drafting.  The idea is that it will work much like wordpress posts that auto-save or gmail messages.  There are also changed coming for content/page owners, which is something that has not worked as intended in DotCMS.  Lastly, it will add wiki-like link structures to DotCMS.</li>
<li>Looking beyond 1.8 there are some big plans for this year.  A simplified UI for permissions, improvements to the Multi-Site Hosting UI, Push Publishing, a better forms builder with chaining, and access to content in the CMS view web services over CMIS.</li>
</ul>
<h2>Wrap Up</h2>
<p>So, this has been a really long congolomo-blog post.  Sorry for that.  As you can see the conference was a great source of information!  I thouroughly enjoyed myself and I think everyone that came got a ton of value out of it.  Not to mention the networking possibilities.    There are some really cool things in store for us this year.  To say that I am giddy with anticipation would be an understatement.</p>
<p>Here are some additional links to information about the conference (more as I find them):</p>
<ul>
<li>Fienen&#8217;s Live Blogging of the Conference:  <a href="http://www.supersatellite.com/2009/02/05/oh-hai-gaiz-im-in-myamee/">Post 1</a> | <a href="http://www.supersatellite.com/2009/02/06/dotcms-plugin-joyfulness/">Post 2</a></li>
<li><a href="http://www.flickr.com/photos/fienen/sets/72157613404845392/">Fienen&#8217;s Flickr Feed</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2009/02/dotcms-bootcamp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Started with Velocity in DotCMS</title>
		<link>http://www.cfalzone.com/blog/2008/08/vlocity-in-dotcms/</link>
		<comments>http://www.cfalzone.com/blog/2008/08/vlocity-in-dotcms/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 19:38:00 +0000</pubDate>
		<dc:creator>cfalzone</dc:creator>
				<category><![CDATA[DotCMS]]></category>
		<category><![CDATA[Velocity]]></category>

		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=1</guid>
		<description><![CDATA[I seem to get a lot of questions on how to start with velocity coding. What is available? What is the Syntax? I think it’s a good question so it’s time to write up a quick post about it. First off, I would start with actually building your site. Come up with a need. Start [...]]]></description>
			<content:encoded><![CDATA[<p>I seem to get a lot of questions on how to start with velocity coding.  What is available?  What is the Syntax?  I think it’s a good question so it’s time to write up a quick post about it.</p>
<p>First off, I would start with actually building your site.  Come up with a need.  Start with something simple and something that you already have data for.  I found that trial and error on real problems is the best way for me to learn a new language.</p>
<p>Most likely, if you’re trying to do something simple, there is already an example of how to do it in <a title="DotCMS Demo Site." href="http://demo.dotcms.org" target="_blank">DotCMS’s Demo Site</a>.  The username/password is:  test@dotcms.org/test.  Remeber to put a /c after the host to get to the login page.  I’ve found that most of my questions can be answered just by looking a good example.</p>
<p style="text-align: left;">From there my next stop is the <a title="DotCMS's Velocity Documentation" href="http://www.dotcms.org/documentation/?folderPath=/community/documentation/documentation_repository/velocity/" target="_blank">documentation that DotCMS has on velocity</a>:</p>
<ol>
<li><a title="Velocity and the DotCMS" href="http://www.dotcms.org/community/documentation/documentation_repository/velocity/Velocity_and_the_dotCMS.txt" target="_blank">Velocity and the dotCMS</a>:  This is a great file to find out what API’s or ViewTools that are avilable in your Velocity code.  For example:  If you wanted to use the EscapeTool, you would use the variable $esc in your code.  I show you in a bit how to find out what is available in each tool.</li>
<li><a title="Velocity Cheat Sheet" href="http://www.dotcms.org/community/documentation/documentation_repository/velocity/Velocity-Cheat-Sheet.txt" target="_blank">Velocity Cheat Sheet</a>:  This file has several nice examples on how to use the various Macros and ViewTools available in DotCMS.  I find a lot of my answers about how to do something in DotCMS here.</li>
<li><a title="Macros Tips &amp; Tricks" href="http://www.dotcms.org/community/documentation/macros-tips-and-tricks.dot" target="_blank">Macros Tips and Tricks</a>:  The nice thing about velocity coding is that you don’t really have to know how to do it to take advantage of it.  That’s where macros come in to play.  Macros take a whole ball of velocity code and wrap it up into one nice little line of code.  (Just noting here that you can get some good examples of velocity coding in the macros file:  /dotCMS/WEB-INF/velocity/*.vm)</li>
</ol>
<p>If you really cannot find what you are looking for in that, the next step would be to look in the <a title="Dotcms API." href="http://dotcms.org/api" target="_blank">API docs</a>.  Now, if you’ve never looked at Javadocs before this might be a little overwhelming at first.  But, I find it extremely useful when I am trying to do something out of the box.  Browse to <a title="DotCMS API" href="http://dotcms.org/api" target="_blank">http://dotcms.org/api</a>.  From there scroll down the list and click on the “<a title="DotCMS Viewtools API" href="http://dotcms.org/api/com/dotmarketing/viewtools/package-summary.html" target="_blank">View Tools</a>” class (com.dotmarketing.viewtools).  From there you will get a list of all the api’s that DotMarketing has created.</p>
<p>That’s nice if what you want is a list of DotCMS’s View Tools, but if you are looking for the built in stuff,  head over to <a title="Apache's Velocity Site." href="http://velocity.apache.org/" target="_blank">Apache’s Velocity Site</a> and click on the <a title="Velocity Tools" href="http://velocity.apache.org/tools/releases/1.4/" target="_self">Tools</a> link.  From there click on Generic Tools and then the specific tool that want to look up.</p>
<p>I hope that helps to get new users up and going with velocity.  If you still feel very confused, here is a lit of other resources that you might find handy:</p>
<ul>
<li>Apache has a nice <a title="Velocity User's Guide." href="http://velocity.apache.org/engine/devel/user-guide.html" target="_blank">Velocity user’s guide</a>.</li>
<li>If you want to start developing your own ViewTools, check out the <a title="Velocity Developer's Guide" href="http://velocity.apache.org/engine/devel/developer-guide.html" target="_blank">Developer’s guide</a>.</li>
<li><a title="VTL Reference Guide" href="http://velocity.apache.org/engine/devel/vtl-reference-guide.html" target="_blank">Velocity Template Language Reference Guide</a>.</li>
<li>(more to come as I find them).</li>
</ul>
<p><em>Update: 1:12 PM, July 23, 2008:</em></p>
<p>Jim S. over in the DotCMS IRC group pointed out a velocity mailing list:  <a title="Velocity News Group" href="http://www.nabble.com/Velocity---User-f347.html" target="_blank">http://www.nabble.com/Velocity—User-f347.html</a>.  Thanks Jim!</p>
<p>Also, that brings up a good point.  We have a core group of DotCMS-er’s over in the #dotcms IRC chatroom.  Feel free to jump on board and ask us your questions! We are on freenode.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfalzone.com/blog/2008/08/vlocity-in-dotcms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
