XStandard XHtml Code Templates
Posted July 26, 2006 at 8:03 AM
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">
- <br />
- </td>
- <td class="n">
- <br />
- </td>
- <td class="ne">
- <br />
- </td>
- <td width="50%" rowspan="3">
- <br />
- </td>
- </tr>
- <tr>
- <td class="w">
- <br />
- </td>
- <td class="c">
- <img src="about:blank" />
- </td>
- <td class="e">
- <br />
- </td>
- </tr>
- <tr>
- <td class="sw">
- <br />
- </td>
- <td class="s">
- <br />
- </td>
- <td class="se">
- <br />
- </td>
- </tr>
- </table>
And using that, I can automatically insert more complex layouts like the image below that has the drop-shadowy border:
| | | | ||
| | ![]() | | ||
| | | |
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
Newer Post
Calling Array Functions on ColdFusion Query Columns Part II
Older Post
Calling Array Functions on ColdFusion Query Columns
Reader Comments
There are no comments posted for this web log entry.





