Re: For those that hand code...



In article <13t9jag90h426a5@xxxxxxxxxxxxxxxxxx>,
Jeff <jeff@xxxxxxxxxxxxxxx> wrote:

dorayme wrote:

You are right Jeff, it is a bit of PITA when it gets more
complex.

But, you know, sometimes, in a big site, it is better to be very
simple in the navigation system. To keep one main navigation
pretty constant throughout. (You can always add little flourishes
and highlightings via php, eg. for current page).

And you can have local menus for some sections.

That is really common. And you would search and replace only those pages
in that section. How would you do that? It looks to me that you would in
effect edit each page individually as you still have to mark the current
page. Or you would need a lot of PHP includes.


This is getting kind of confusing I guess. Using S&R always means
NOT having to actually hand edit each page if you tell the S&R
engine to search and replace over a set of files. So, if you have
a section of the website that has a different kind of menu to the
rest and it is in its own folder, there is not problem. If the
section is not collected together in a folder but there is some
distinguishing feature about the menu on its pages, then again,
there is no problem of the search engine picking only those files
to change as you want. This is a general point independent of how
to manage includes.

But let us suppose that there are includes and you want to make a
copy of your website without includes, a "full-code copy". OK.
You do exactly what I described in the first place. If the php
includes is different to the rest in "only those pages in that
section", then the search engine will only replace those files in
that section. If it is not different, then you have not got a
problem in the first place or else the problem is different.

For example, you might be wanting to make a certain set of pages
have a different menu to the rest. Easy, just grab all those
files and put them into a temporary folder and just let your S&R
engine go to town on that folder. You can get rid of the folder
later.

I'm not saying that's wrong, just curious how you manage a site in the
25 page range. Personally I've found that managing a site that size and
larger requires keeping careful track ...

I use a home server, I use includes. Except for idiosyncratic
personal circumstances to do with a winbox I have to do with
checking IE 6, there is no problem at all. In fact, that is what
includes are all about. Easy management. That is the prime reason
for it. Change the include file and the changes propogate
thoughout the site, just as with external style *** changes.


All these things
(not the php highlight aids) are easy to use S&R for.

I'll say it again: best is get a home server with PHP,


I'm mixed up here. Why do you need a home server with PHP?

Jeff

host with
a good host server with PHP. Bob and Carol, Ted and Alice would
then easily be your uncles and aunts.


--
dorayme
.


Loading