Ken Pooley wrote:
> I am not all that worried about one or two cases like this...but got knows
> once I start building conditionals I start finding more and more "what ifs"
> so I tend to be a little gun shy. I always want to build everything into
> one block with a lot of contingencies....the problem now is that I am going
> to the opposite extreme...I have twenty three departments each with the
> same layout needs but completely separate datasets, so I have built one set
> of pages/page elements to serve a one department and now I just have to
> copy those pages/element to the other departments and change the topic
> numbers...( I have 23 datasets, I don't see a way around this)
If the switch is for entire datasets you could of course make two active
pages
for this stuff each with a different page element (or simply duplicating
the
entire page logic) that does the 'right' content inclusion. Eliminates
the
run-time decision.
> .......there should be an easier way to do this. I know it is the least
> elegent way to do it but it is relatively fast. Before anyone calls me a
> wimp...yes the programmer in me wants to have done all of this with one
> wicked efficient script but speed of implementation was an issue and at
> least this way I can have an intern do the copy and pasting..then I can go
> back later and boil everything down to a perfect shining example of perfect
> context aware code...when I have the time.
I have seen some mention of pre-compiled PHP code in the past, but I
totally
can't remember when or where.
> ( Emile, that will be the day
> after I jump out of a flying airplane...not likely, at least until I come
> to the Midgard meeting, and beers)
Wimp :) If you have enough beers you'll be forbidden to jump out of the
airplane
(unless it's on fire), so for many people this is the ultimate win-win
situation:
you get to get wickedly drunk *and* you don't have to bail out of an
airplane :)
> In the mean time it would be so much
> easier if there were a mechanism to copy and/or share code objects from one
> section to another...
1.2.6 is your friend. A copying mechanism is present as is a replication
system.
> or at least something cooler than student slave
> labour....which works but they take up space and smell funny....
Isn't that what the crawling space beneath houses is for? OK, so you
have to
do some cabling work but well worth the trouble.
emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]