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 7, 2009 at 5:53 PM
Ask Ben: Javascript String Replace Method
You can find here an advanced function that prepared with javascript replace function. This can make the first letters of words, sentences, lines and whatever you define automatically: http://www.m ... read »
Andrew Neely
Nov 7, 2009 at 4:56 PM
A Moment That Touched Me - The Fountainhead
Ben, Glad you enjoyed the podcast. Yeah, the Tank Riot guys can get really chatty during the episodes, but that's part of the charm of it for me. They've covered everything from Nichola Tesla to Cha ... read »
Nov 7, 2009 at 4:43 PM
Building A Fixed-Position Bottom Menu Bar (ala FaceBook)
Is it possible to make some more MenĂ¼`s ? ... read »
Jill
Nov 7, 2009 at 11:40 AM
How To Unformat Your Code (Like A Pro)
Derek, I think you might be right - sweet! Thanks for the link :) ... read »
Nov 7, 2009 at 11:25 AM
How To Unformat Your Code (Like A Pro)
I think it would be way easier to just use this http://www.logichammer.com/html-formatter/ He just released v3 and it rocks. ... read »
Jill
Nov 7, 2009 at 7:58 AM
How To Unformat Your Code (Like A Pro)
LMAO - this was pretty funny! I have to admit - I also love to reformat code so I can read it. My boss used to tell me to leave my OCD at home. Now I don't feel so bad after reading everyone else' ... read »
Nov 6, 2009 at 10:10 PM
How To Unformat Your Code (Like A Pro)
The timing of this post is just uncanny. I spent the last 15-20 minutes manually un-formatting my "Ben Nadel" style code within a CFC of mine. I was really digging the readability a few weeks ago, bu ... read »
Roe
Nov 6, 2009 at 5:11 PM
Passing Arrays By Reference In ColdFusion - SWEEET!
ArraySort also reorders the results of these java obj's ... read »