Wednesday 22 December 2004 4:39:43 am
Hi, A kind of symbolic linking (creation of shortcut) is possible by assigning several nodes to the same object. This is easily done by the addition of an extra location (add new location from within the admin interface). However, please keep in mind that this feature does not support symlinking on a subtree/recursive basis. Let me demonstrate... Let's say you have the following objects:
1: Root folder
2: News folder
3: Sports folder
4: Article one
5: Article two
..and that you've set up the following node tree:
A
|
-+-
/ \
B C
|
-+-
/ \
D E
In other words, you'll have the following node assignments:
Node A ---> Object 1
Node B ---> Object 2
Node C ---> Object 3
Node D ---> Object 4
Node E ---> Object 5
(Node A points to object 1, node B points to object 2, and so on.)
Okay, now, let's say you want to make the object that is pointed to by node C (object 3) available under node B. Okay, you'll simply add a node assignment (using the locations panel from the admin interface). The result will be:
Nodes & objects:
----------------
Node A ---> Object 1 (Root folder)
Node B ---> Object 2 (News folder)
Node C ---> Object 3 (Sports folder)
Node D ---> Object 4 (Article one)
Node E ---> Object 5 (Article two)
Node F ---> Object 3 (Sports folder) *NEW LOCATION*
Your node tree would look like this:
------------------------------------
A
|
-+-
/ \
B C
| |
F -+-
/ \
D E
In other words, you have successfully placed the Sports folder under the News folder at the same time as it is also availalbe at its original location (directly below the root). However, notice that the children of the Sports folder were not symlinked.
Conlcusion: Object symlinking is possible but only on a per-object-basis and not recursively. It is important to keep this in mind whenver you're sketching out / planning the node tree of an upcoming eZ publish site. A lot of people fall into the same pitfall over and over again, thinking that symlinking is possible just like it would be on a filesystem. Balazs
|