Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Using the new include feature

I used to use variables for a lot of HTML "snippets."

I am finding that new 2.x include feature makes working with variables a lot easier.

My New Process
1. I create an article containing an HTML "snippet" that I will frequently reuse.
2. I create a new variable which includes the file: {$ include "common/thefile" $}
3. Now non-techies can insert the variable from the menu, and have a full HTML view to modify the snippet without without having to have the "Designer View" turned on.  I also find it useful to have the HTML Normal view preview and I only have to deal with the horrors of the variables dialog once.

David Burch
Thursday, June 5, 2003

*  Recent Topics

*  Fog Creek Home