Share » Forums » General » Multiple Locations for same Folder

Multiple Locations for same Folder

Multiple Locations for same Folder

Tuesday 23 December 2008 8:36:41 am - 4 replies

Author Message

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

Sylvain Gogel

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

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Sylvain Gogel

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?

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu