Gossamer Forum
Home : General : Perl Programming :

Re: Dynamic pages using templates?

Quote Reply
Re: Dynamic pages using templates? In reply to
Adam -- you have not led me astray in the least. Your last posting is *hugely* helpful. I've been trying to get at that information for weeks now, but no one I've spoken to has been able to explain those methods as clearly and succinctly as you just did.

I was having difficulty explaining my needs clearly, but now you understand exactly what they are. dbMan and Links are, indeed, far more sophisticated than I'll need; the SSI option solves one of my problems, and will simplify my life immediately. I tried out the include-tag and it works like a charm. It will be perfect for those header-footer situations, as you have already shown. (Can older browsers make sense of SSI elements as well as the latest ones?)

I can see, however, that the SSI method has its limits. Suppose a page (or really, a collection of similar pages) includes numerous spots where particular data would replace an include-tag. Is there a more efficient way to generate these pages than using a whole bunch of different include-tags referring to different data files?

I suppose what I'm saying is that it sounds as though buildpage.cgi would be the ultimate solution to my present needs, though obviously I don't know what it can do. I didn't even know such a script existed by that name until you suggested it (where can I find it?) ... would it do roughly what I outlined in my first posting here? I'm not too concerned about the search engine issue you raise, though I appreciate the warning.

Two examples of what I'd like to do -- keep in mind I have no idea how difficult it would be to accomplish these goals, and if the solution is beyond what buildpage.cgi can handle, it might be beyond what I can handle myself, as far as programming is concerned:

(1) Consider a set of pages: each is comprised of specific information within a standard layout. Here's an example: http://www.bestweb.net/~bpress/press/unclec.html . Here the specific pieces of data, which include a photo of a printing press and details about the press (plus the title of the document), are scattered within an HTML table layout. Could buildpage.cgi extract the data from a file and insert each piece into its correct position in the layout?

(2) A more complex, but related, problem: A thumbnail menu of these printing presses (see http://www.bestweb.net/~bpress/mus/mus.html) comprises several pages, each of which shows 9 presses in a table layout. Currently, if I add a new thumbnail -- say an "Adams" press -- to the list, I have to go through the menu pages and bump the last image on each page to the first position on the next, moving all of the images forward one cell. Could buildpage.cgi (or a similar script) spare me this tedium by automatically generating menu pages by looking at a data file and displaying the first 9 entries it finds? This way, I could add new press data to the data file, and new menu pages would automatically be displayed to the user.

If you can even get me started in solving these issues, Adam, I would be overwhelmingly in your debt. You've already been exceedingly generous with your time -- in so doing you've saved me heaps of time in the long run.

Much obliged,

ecn
Subject Author Views Date
Thread Dynamic pages using templates? ecn 8965 Apr 23, 1999, 10:36 AM
Post Re: Dynamic pages using templates?
dahamsta 8713 Apr 23, 1999, 2:16 PM
Post Re: Dynamic pages using templates?
ecn 8722 Apr 23, 1999, 7:09 PM
Post Re: Dynamic pages using templates?
dahamsta 8732 Apr 24, 1999, 4:14 AM
Post Re: Dynamic pages using templates?
ecn 8738 Apr 26, 1999, 6:56 PM
Post Re: Dynamic pages using templates?
dahamsta 8722 Apr 27, 1999, 1:26 AM
Post Re: Dynamic pages using templates?
ecn 8752 Apr 27, 1999, 10:24 AM
Post Re: Dynamic pages using templates?
dahamsta 8711 Apr 27, 1999, 3:18 PM
Post Re: Dynamic pages using templates?
ecn 8715 Apr 27, 1999, 4:55 PM
Post Re: Dynamic pages using templates?
dahamsta 8790 Apr 28, 1999, 8:11 AM
Post Re: Dynamic pages using templates?
ecn 8716 Apr 28, 1999, 8:39 PM
Post Re: Dynamic pages using templates?
dahamsta 8749 Apr 29, 1999, 1:07 AM
Post Re: Dynamic pages using templates?
WilHatfield 8781 Feb 27, 2000, 11:58 PM
Post Re: Dynamic pages using templates?
Stealth 8751 Feb 28, 2000, 6:20 PM
Post Re: Dynamic pages using templates?
WilHatfield 8760 Mar 1, 2000, 7:27 PM
Post Re: Dynamic pages using templates?
Stealth 8711 Mar 1, 2000, 7:32 PM
Post Re: Dynamic pages using templates?
WilHatfield 8723 Mar 4, 2000, 6:02 PM