Michel Houtermans
|
Tuesday 10 February 2004 11:46:40 am
I created an object and added to two locations. If I want to display the object in the main location I have no problem. I just fetch the contents of the folder and it works, I create an override and it works. Now when I go to the second folder I cannot get the same object to be displayed. The fetch simply does not work. In the admin it looks like this:
Folder 1
-> object (node id: 137, object id: 140)
Folder 2 -> object (node id: 138, object id: 140) The main location is folder 1. What kind of fetch do I need in folder 2 to display the object? Do I need to use the parent_node_id of folder 1 in the folder 2 template? Or how does this work?
|
Michel Houtermans
|
Tuesday 10 February 2004 12:15:29 pm
I think the problem has to do with the line view override template. Some how he does not want to display that template.
Folder 1 is section 5 Folder 2 is section 4 I now created a line view override for class 21 and section 4. But does not go in there to display the content of it. Is the wrong because of the different locations?
|
Marco Zinn
|
Tuesday 10 February 2004 1:22:44 pm
Hi, to remove possible "point of failures", I suggest, that you just use one section and one template (no overrides), until your node 138 shows up at all (if this is possible for the moment). Also, make sure, that "anonymous" can read your content class and section in any case (or log in as admin user).
The default templates do not care, if the object is in it's main node or not. The List-"Fetch", that is used, operates on "nodes", not objects, and for that, your two nodes are of the same kind. There is no "main" and "copy" or so.
So, the node should show up in the templates, just as it should show up in the admin interface. (Note: I think, the "tree"-Fetch function does NOT send duplicate object nodes).
Marco
http://www.hyperroad-design.com
|
Michel Houtermans
|
Wednesday 11 February 2004 12:51:20 pm
the problem seamed so hard yet it was so easy. Here is what i did wrong Both folders were assigend a section. Since I created the object in Folder 1, the same object in Folder 2 still belongs to the sectoin of Folder 1. Thus the override I created for folder 2 was based on the wrong section. Fixed the section and now it worx ;-)
|