Re: [Zope] Zope from a php perspective
Hi vincent... include_path : I understand that you can automatically include objects into pages by referencing their id, I also understand that Zope automatically searches up the parent chain till it finds a matching object. But what if I want to include something outside of the tree? or just wanted a central repositories of object that I wanted to be able access from anywhere. You use expressions which include a path to the container. An example, where "MyFolder" is a folder in the Zope root folder: dtml-in "MyFolder.objectIds()" dtml-var sequence-itembr /dtml-in "MyFolder" will be found in the containment path, and you're access the objectIds method of it by using the expression "MyFolder.objectIds()". Some better examples are given in the Zope book. One thing to realize is that things "in quotes" following a dtml-var, dtml-call, dtml-with, dtml-in, etc. is a Python expression, whereas things that are not in quotes are not. i.e cars colors | | ford red | toyota if cars and colors are on seperate branches, how an I "cross" the brnches to access objects. I dont understand your diagram. Publishing tools: I'm going to be doing some news related sites, are there tools specially made for this type of project? I'm using 2.2.5 , does Ztemplates and Zpublisher automatically come with this version? They are not listed in the "products" folder in the management screen. Check out the portal toolkit...http://www.zope.org/Products/PTK Where can I find the the full docs on Ztemplates and Zpublisher? See the Zope Book: http://www.zope.org/Members/michel/ZB/, particularly the chapter "Dynamic Content With DTML". comment: I find the Zope website hard to extract info from. I suggest a seperate section for ducumentation of the core functionality and another section for additional add-on modules (products?) This is sort of the way it's laid out now, although arguably many core pieces should really be Products with their own set of documentation. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope from a php perspective
On Tuesday 16 January 2001, at 11 h 43, the keyboard of Vincent Stoessel [EMAIL PROTECTED] wrote: matching object. But what if I want to include something outside of the tree? Zope does not use the tree of directories: it uses its own database. Hence, every object is in the Zope tree. or just wanted a central repositories of object that I wanted to be able access from anywhere. Install them at the root. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope from a php perspective
Howdy, Yes, you can call another object outside your "tree". Example: lets say you have /folder1/folder1a/item1 and /folder2/item2 and you want to access item2 from item1 in dtml you need to put item2 into the context: dtml-with "folder2.item2" p This puts item2 from folder2 into context... any dtml-var calls will first be applied to item2 until the closing with tag /p title of item2 = dtml-var title /dtml-with with the "folder2.item2" Zope starts walking up the tree until it finds folder2 then walks down to find item2 hope this helps Tom "Vincent Stoessel" wrote: Hello All, I have starting testing Zope as a potential CMS for some production websites. I think I understand the basic of to create and edit pages in the Zope system. I haver a few questions for those more experieced with this system. I am very familiar with php so I need someone to translate these concepts for me. include_path : I understand that you can automatically include objects into pages by referencing their id, I also understand that Zope automatically searches up the parent chain till it finds a matching object. But what if I want to include something outside of the tree? or just wanted a central repositories of object that I wanted to be able access from anywhere. i.e cars colors | | ford red | toyota if cars and colors are on seperate branches, how an I "cross" the brnches to access objects. Tom Jenkins devIS - Development InfoStructure http://www.devis.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope from a php perspective
This is sort of the way it's laid out now, although arguably many core pieces should really be Products with their own set of documentation. Absolutely, and the installation and changes to those products should be separate from the installation. For example when Michel puts a patch in ZCatalog, that product should be downloaded separately and not as a new Zope version. The latest version can still be bundled with Zope of course... -- Andy McKay. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )