You are here: Re: how to better handle links « HTML « IT news, forums, messages
Re: how to better handle links

Posted by dorayme on 05/26/07 23:32

In article <w606i.1726$dy1.301@bigfe9>,
"jane doe" <anotherdamnmungjob@in.usa.com> wrote:

> I update often, and having to do each page one by one is getting old very
> quick. I use css on my website, but I am not real good at it. I need a way
> to add or update links to my pages, but only have to edit one file, instead
> of 77. Is there a css way of doing this? Or is there another way?
>

Last things first. Go to

http://en.wikipedia.org/wiki/Signature_block#E-mail_and_Usenet

and read under the heading "E-mail and Usenet".

About updating. I notice you are getting replies that are surely
blinding you with science at the moment. But it can be a
complicated business. Let me suggest something simpler for a
start.

Get a good text editor that has a Search & Replace function that
is sophisticated enough to at least change all occurences of a
set of words in any number of files (not just one file). Once you
have your hands on this facility (many are good and free), you
will find life suddenly very much easier. If, for example, your
links arte all in some menu block on 77 different pages and you
want to change several of them, all you need do is copy and paste
the existing block of text into both the "Search" text field of
the editor and the replace one too and go on to make the changes
you want in the latter field. You then must instruct the function
to search a whole folder or directory (eg the whole website
folder on your local machine) and to replace all occurences. This
is often accomplished by help of ticking various boxes in the
editor function that comes up.

Naturally, you can adapt the above advice depending on your
situation. It is a huge time saver.

As for uploading the now successfully changed files, you still
have to do that. But that is easy and quick, 77 is not that many
and you can select the lot and ftp them all up in one go.

If you want to avoid this last step and generally are determined
not to actually change all your 77 html files then you need to do
a fair bit of work to set things up. This involves learning about
either server side includes or php includes. These techniques
involve putting a simple line of code in place of the block of
link text you normally have, a line of code which effectively
says: "Server, go fetch the following text file from such and
such a directory and stick it in here". You then make that text
file and put it on the server in that directory. When you want to
change that one text file, you can and it will then appear in all
77 files. But to do this, you need to look up server-side and php
includes and study it. It is not dead simple (like the S & R that
I recommended you at least try first) but not that hard either.

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация