SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
Thread: Accessibility Issue
-
Oct 16, 2009, 19:00 #1
- Join Date
- Oct 2009
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Accessibility Issue
Hi everyone,
I'm currently working on a website for a friend, doing it in HTML/CSS, finished most of it actually, but i'm having this issue that i need to solve before moving on, the website is going to have new pages and going to be updated frequently.
The thing is, there is one part in the header that is going to be updated with new text every now and then, and it should show on all pages, currently, i'll have to go thru each page and edit it. In the future when the number of pages become too big this will not be a logical way to do it if i want to change text.
I would like to learn and know if there is a way to make this particular part accessible from like one place, and when i change it in this one place changes will reflect in all other pages which will only have a link or reference to that single place.
I know it can be done in php, but i'm not a php expert and my website is already in html.
Any help is appreciated.
Thanks
-
Oct 16, 2009, 20:23 #2
- Join Date
- Mar 2009
- Location
- Melbourne, AU
- Posts
- 24,338
- Mentioned
- 465 Post(s)
- Tagged
- 8 Thread(s)
If you are using a program like Dreamweaver you can create library items (or something like that) but they are not very good.
I've written a simple post about how to do this with PHP. You really don't need any PHP skills to do this, and it can be done on HTML pages if you like. Have a read of this and see if it helps:
http://www.pageaffairs.com/web/php/e...-php-includes/
-
Oct 16, 2009, 23:48 #3
- Join Date
- May 2007
- Location
- Countryside, Sweden
- Posts
- 3,407
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi ARayess, welcome to SitePoint!
Here is another thread with some info too.
Nice tutorial Ralph, I especially liked the "DOCUMENT_ROOT" tip, enabling the paths to be absolute!Happy ADD/ADHD with Asperger's
-
Oct 17, 2009, 00:38 #4
- Join Date
- Mar 2009
- Location
- Melbourne, AU
- Posts
- 24,338
- Mentioned
- 465 Post(s)
- Tagged
- 8 Thread(s)
-
Oct 17, 2009, 07:04 #5
- Join Date
- Oct 2009
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I came to the right spot, thanks alot Ralph and Erik, i'm following Ralph's tutorial on this.
Cheers
-
Oct 20, 2009, 01:42 #6
- Join Date
- Feb 2009
- Location
- England, UK
- Posts
- 8,111
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
Just in case you were still interested, most server-side languages have some kind of includes system, I've added a few of the other language based commands you can insert to embed depending on which you choose to use, might be useful for other people reading the thread.
- SHTML – <!--#include virtual="file.html"-->
- PHP – <?php include('file.php'); ?>
- ASP – <!--#include file="file.asp" -->
- ColdFusion – <cfinclude template="file.cfn">
- JSP – <jsp:include page="file.jsp" />
PS: What do includes have to-do with accessibility?
-
Oct 20, 2009, 02:51 #7
- Join Date
- Mar 2009
- Location
- Melbourne, AU
- Posts
- 24,338
- Mentioned
- 465 Post(s)
- Tagged
- 8 Thread(s)
Bookmarks