Forums / General / Multiple Locations for same Folder
Sylvain Gogel
Tuesday 23 December 2008 8:36:41 am
Hi there,I'm running Ez4.0.1 + ezwebin
Here is my issue: 1 have a 'Forums' instance that must be available in different path (with the correct path in the Path area)
So i planned the following: Level 1 Folders + Pro + Fans + Forums (invisible)
And i planned to create extra locations for the 'Forums' node inside 'Pro' and 'Fans' folders.
Looks like the node multi locations features does not allow to symlink the content tree of Forums inside the extra locations.
What is the good way to acheave this?
-- http://www.ecedi.fr Agence Web, Créa/Conseils, Accessibilité eZPublish, Drupal, Zend, Symfony
Ivo Lukac
Tuesday 23 December 2008 10:52:40 am
Hello Sylvian,
You can't achieve the 'symlink' functionality with multilocations in eZ if you have subtree objects on original locations. You can achieve it with custom classes which kind of redirect you to original location either using specified url or objectrelation attribute.
For example you can make a custom class with 2 attributes: - name - objectrelation Then create that object in second location and connect it with original location over objectrelation attribute.Last thing to do is the full template for that class which only calls node_view_gui view=full for related object main node.
Hope I was helpfull :)
http://www.linkedin.com/in/ivolukac http://www.netgen.hr/eng/blog http://twitter.com/ilukac
Wednesday 24 December 2008 12:58:38 am
Thanks Ivo it looks like exactly what i want, i only have to see how the path aera will behave
cheers
Wednesday 24 December 2008 1:41:02 am
Hum something goes wrong with the view
I created a SymLink content class with a title and a symlink (Object relation) attribute.
i created a full view for this class
{* symlink full view *} <!-- spSymlink Full view --> {node_view_gui view=full content_node=$node.object.data_map.symlink}
On display i got a "The maximum nesting level of 40 has been reached. The execution is stopped to avoid infinite recursion. " message instead of the full view of the object relation :(
Any idea what's wrong?
André R.
Wednesday 24 December 2008 2:05:25 am
Try $node.data_map.symlink.main_node, remember it's 'object'relation not node relation.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom