The TXGenWeb


Monday, 20-Feb-2012 20:43:08 EST
Texas Genealogy & History
"...the people of Texas do now constitute a free, Sovereign, and independent republic..."

- from the Texas Declaration of Independence, 2 March 1836

Tutorial - Using the Automatic TXGenWeb Code

Ever worry that one of your neighboring counties might change change URLs and not notify you? Tired of updating the date everytime you make a change to your page? Want to put in the e-mail address of another Coordinator, but don't want to have to change it everytime s/he does?

TXGenWeb has some special codes that you can use that will solve all of these problems. You must be hosting your pages in Rootsweb for this to work.

Lesson One - County Links

Begin a new web page with your favorite html editor and call it 072704.html. Make sure you have the basic html (listed below):



In between the body tags, you will insert the following code:

<!--#include virtual="/~txgenweb/tx/sterling.url"-->

where the word sterling is exchanged with the name of one of your counties.

Preview your page and you should see a link that goes to the county page. Everytime a coordinator changes their URL (and tells the SC about it), the link will automatically be updated with no work on your part. This will not work until you have uploaded the document to Rootsweb.

Lesson Two - Modify Dates

In the document that you created above, add the following code just above </body>:

Last Updated: <!--#echo var="LAST_MODIFIED"-->

This code looks into the directory where the file is located and checks to see when you last uploaded it to the server. Then, it automatically posts it for you. You will never have to put a modified date in there again!

Lesson Three - Automatic E-mails

In the same document above the </body> tag, put in the following code:

Copyright 2004 by <!--#include virtual="/~txgenweb/tex/"--> where tomgreen is the name of your county.

As long as you have your correct e-mail address updated with the SC, your e-mail will automatically show up on your site. You can also use this to list e-mail address of other coordinators in our system. Just make sure that you change the county name in the code. If you use this throughout your entire site and change your e-mail somewhere down the road, you can just have the SC update your info in the system instead of having to change it on every page you have listed.

Upload this document to your Rootsweb directory and view it. You should see a link to your county, a modify date and a link to your e-mail address.

Come to the chat and let us know if you have any questions. Cheers!


You may notice a message beside the county listing indicating it is available for adoption. This means that we are looking for someone to take it over on a permanent basis. If you would like to adopt a web page for one of these counties, please contact Shirley Cullum , State Coordinator.  The assistant state coordinators are Elaine Martin and Jane Keppler.

Page Design by: Kimm Antell
Graphic Design by: Terri Brown

Web Space Provided By: RootsWeb
Copyright 1996 - 2010 The TXGenWeb Project
All Rights Reserved. Limited use rights may be granted by written or electronic permission.