XStandard XHtml Code Templates

Posted July 26, 2006 at 8:03 AM

Tags: XStandard WYSIWYG

I am just testing out XStandard's ability to add xhtml code templates. For instance, I have a the template file _image_border.cfm that has the code:

 Launch code in new window » Download code as text file »

  • <table width="100%" border="0" cellspacing="0" cellpadding="0" class="imageborder">
  • <tr>
  • <td width="50%" rowspan="3">
  • <br />
  • </td>
  • <td class="nw">
  • &nbsp;<br />
  • </td>
  • <td class="n">
  • &nbsp;<br />
  • </td>
  • <td class="ne">
  • &nbsp;<br />
  • </td>
  • <td width="50%" rowspan="3">
  • <br />
  • </td>
  • </tr>
  • <tr>
  • <td class="w">
  • &nbsp;<br />
  • </td>
  • <td class="c">
  • <img src="about:blank" />
  • </td>
  • <td class="e">
  • &nbsp;<br />
  • </td>
  • </tr>
  • <tr>
  • <td class="sw">
  • &nbsp;<br />
  • </td>
  • <td class="s">
  • &nbsp;<br />
  • </td>
  • <td class="se">
  • &nbsp;<br />
  • </td>
  • </tr>
  • </table>

And using that, I can automatically insert more complex layouts like the image below that has the drop-shadowy border:


 
 
 

 
i am  
 
 
 

All code templates are organized into a single directory (by my choice) and are available in a directory menu for ease of use. Every day, I am finding XStandard to be a more and more powerful editor for my own content management system (CMS). Right now, I am hooking directly into my database for links to my blog entries and snippets. I have directories of special and foreign characters. I can upload images through XStandard and integrate them with my own file management system. It's pretty freakin' cool! Don't you with you had a little more XStandard.com in your site?

Download Code Snippet ZIP File

Post Comment  |  Ask Ben  |  Permalink  |  Print Page



Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

There are no comments posted for this web log entry.


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 20, 2009 at 11:32 PM
Five Months Without Hungarian Notation And I'm Loving It
I've used headless camel case for years for not only ColdFusion variables, but also SQL tables and fields... pretty much everything involving code. I also subscribe to the "don't abbreviate and clea ... read »
Nov 20, 2009 at 11:00 PM
Five Months Without Hungarian Notation And I'm Loving It
@Marcel, Yeah, I always err on the side of longer but more readable variable names. As for the camel casing of CF methods and the headless camel casing of custom items, I get around this by always ... read »
Nov 20, 2009 at 10:56 PM
Five Months Without Hungarian Notation And I'm Loving It
I use the following and love it: my.namespace.MyComponents.functionMethodsOrUDF() CONSTANT_VALUES_OR_PROPERTIES One thing I always try is to CamelCaseBuiltInColdFusionFunctions() so others can tell ... read »
Nov 20, 2009 at 5:38 PM
Learning ColdFusion 8: CFImage Part I - Reading And Writing Images
Hi Ben, Great article. I've been looking around to see if ColdFusion image engine can programatically create the following "wrap around" effect: http://www.creativepro.com/article/photoshop-s-she ... read »
Nov 20, 2009 at 5:35 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Dave: I talked to Gert he suggested: <cfhttp method="get" url="http://{some cf website}" result="stuff" addtoken="yes" /> Note the addition of cfhttp attribute addtoken. That should persist y ... read »
Nov 20, 2009 at 5:23 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Todd, Ahh, gotcha, yeah that makes sense. ... read »
Nov 20, 2009 at 5:17 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
Ben, sorry if I didn't make this clear. You can make it work like that if you want, just put <cfset session.foo = 1> (and <cfset application.foo = 1>) in your OnRequestStart() and it reve ... read »