Discussion Locked
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm developing a website for a government agency that will require some information on a web page being replaced from time to time. I have a basic template that is built around tables. In the center of the page I have a table that is one col and 1 row. Is there a way to insert text from another file into the table? Can a call to the html file be made so the contents of the external html is displayed into the table? Any help would be greatly appreciated.
1 reply
by rexworld
Well if you're using an Apache Web server and the content you want to include is in the same docroot, then you can use the virtual include mechanism to slap the contents of a file into the table. We do it all the time here at Builder--the left-side navigation bar is an include that is shared by most of our pages. That way you only have to change the one include and it propogates automagically to all the pages that execute the virtual include.
Here's more on the syntax of a virtual include:
http://httpd.apache.org/docs-2.0/mod/mod_include.html#element.include
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies