[Zope] How to overlay one column of a page
I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only the middle column having content specific to a given page. What I would like to do in the left column is have a set of links to other pages on the same website with the content of each of those links overlaying the middle column. There must be a fairly straightforward way of doing this using minimal codeing, but I can't figure it out. Can anyone give me a pointer to some sample code? And if it's in the Zope book, can you tell me where? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
--On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only the middle column having content specific to a given page. What I would like to do in the left column is have a set of links to other pages on the same website with the content of each of those links overlaying the middle column. There must be a fairly straightforward way of doing this using minimal codeing, but I can't figure it out. Can anyone give me a pointer to some sample code? Create a ZPT and divide your template into slots (metal:define-slot) and fill the content using metal:fill-slot. Everything's documented in the Zope Book (there are *three* chapters on ZPT). -aj pgpNCIXfTO06O.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
Andreas Jung wrote: --On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only the middle column having content specific to a given page. What I would like to do in the left column is have a set of links to other pages on the same website with the content of each of those links overlaying the middle column. There must be a fairly straightforward way of doing this using minimal codeing, but I can't figure it out. Can anyone give me a pointer to some sample code? Create a ZPT and divide your template into slots (metal:define-slot) and fill the content using metal:fill-slot. Everything's documented in the Zope Book (there are *three* chapters on ZPT). -aj John, You might also research/google css and columns. You may find that cascading style sheets are a big assist in this area (in conjunction with Andreas suggestion). David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
Andreas, All you ever say is RTFZB! Which Zope Book are you referring to? Zope changes so quickly, that I have learned not to trust any documentation which refers to a version older than the one I am using. -- John On Sun, Jun 05, 2005 at 12:53:29PM +0200, Andreas Jung wrote: --On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only the middle column having content specific to a given page. What I would like to do in the left column is have a set of links to other pages on the same website with the content of each of those links overlaying the middle column. There must be a fairly straightforward way of doing this using minimal codeing, but I can't figure it out. Can anyone give me a pointer to some sample code? Create a ZPT and divide your template into slots (metal:define-slot) and fill the content using metal:fill-slot. Everything's documented in the Zope Book (there are *three* chapters on ZPT). -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
--On 5. Juni 2005 12:11:50 +0100 John Poltorak [EMAIL PROTECTED] wrote: Andreas, All you ever say is RTFZB! Which Zope Book are you referring to? There is only one official documentation to which almost people refer as The Zope Book: http://www.zope.org/Documentation/Books/ZopeBook/ I did assume you had this in your hand or acrobat reader considering the time you are on the list :-) The Zope Book is usually the first documentation any Zope user starts with *wink* -aj pgpNSx8VUxkET.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
On Sun, Jun 05, 2005 at 08:05:10PM +0200, Andreas Jung wrote: --On 5. Juni 2005 12:11:50 +0100 John Poltorak [EMAIL PROTECTED] wrote: Andreas, All you ever say is RTFZB! Which Zope Book are you referring to? There is only one official documentation to which almost people refer as The Zope Book: http://www.zope.org/Documentation/Books/ZopeBook/ I did assume you had this in your hand or acrobat reader considering the time you are on the list :-) The Zope Book is usually the first documentation any Zope user starts with *wink* I thought you may have meant this... http://www.plope.com/Books/2_7Edition -aj -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
--On 5. Juni 2005 19:53:05 +0100 John Poltorak [EMAIL PROTECTED] wrote: I thought you may have meant this... http://www.plope.com/Books/2_7Edition If look at my link carefully you can read that your link refers to a work-in-progress revision of the *same* book but for Zope 2.7. -aj pgpP0XkWodi3s.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
On Sun, Jun 05, 2005 at 09:12:58AM -0700, David H wrote: Andreas Jung wrote: --On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a standard header and footer, and three columns - the left and right ones also being standard, with only the middle column having content specific to a given page. What I would like to do in the left column is have a set of links to other pages on the same website with the content of each of those links overlaying the middle column. There must be a fairly straightforward way of doing this using minimal codeing, but I can't figure it out. Can anyone give me a pointer to some sample code? Create a ZPT and divide your template into slots (metal:define-slot) and fill the content using metal:fill-slot. Everything's documented in the Zope Book (there are *three* chapters on ZPT). -aj John, You might also research/google css and columns. You may find that cascading style sheets are a big assist in this area I may well do, but I don't expect this to happen any time soon since I have no idea how. (in conjunction with Andreas suggestion). I have major problems trying to make any sense out of many parts of the Zope Book. Here is a typical section introducing ZPTs:- Now, log into your Zope and create a folder called FileLib. In this folder, create a page template called index_html by selecting Page Template from the add menu, specifying the id index_html in the form, and clicking Add. Now, with your editor, save the above HTML to the URL http://your.zope/FileLib/index_html/source.html. Notice that the URL to save the index_html page ends in source.html. Because page templates are dynamic, you need a way to edit the raw source of the template, unrendered by the page template language. Appending source.html to a page template gives you this raw source. If this makes sense to anyone else, can someone explain it to me? To me, it says create a file called index_html - no idea what should go into it... and then paste the contents of an example into a file called index_html/source.html. David -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to overlay one column of a page
My dear John, --On 6. Juni 2005 01:22:05 +0100 John Poltorak [EMAIL PROTECTED] wrote: I have major problems trying to make any sense out of many parts of the Zope Book. Here is a typical section introducing ZPTs:- There is no problem if you read *carefully* Now, with your editor, save the above HTML to the URL http://your.zope/FileLib/index_html/source.html. Notice that the URL to save the index_html page ends in source.html. Because page templates are dynamic, you need a way to edit the raw source of the template, unrendered by the page template language. Appending source.html to a page template gives you this raw source. I don't know to which version of the Zope Book you refer *but* the PDF version of the 2.6 contains a *clear* note that the URL with 'source.html' applies *only* when using Netscape Composer or Amayaif you read this then this URL makes perfect sense. The same chapter of the 2.7 edition does not contain this example anymore (likely for other reasons than the one you are mentioning). To me, it says create a file called index_html - no idea what should go into it... and then paste the contents of an example into a file called index_html/source.html. So if you cite from the Zope Book you should cite completely. So I don't see any errors in this example. -aj pgp6HpcesjuCJ.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )