Multiple Locations for same Folder

Author Message

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:17:49
Script start
Timing: Jan 18 2025 22:17:49
Module start 'layout'
Timing: Jan 18 2025 22:17:49
Module start 'content'
Timing: Jan 18 2025 22:17:49
Module end 'content'
Timing: Jan 18 2025 22:17:49
Script end

Main resources:

Total runtime0.6510 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0313152.6250
Module start 'layout' 0.00510.0024 741.656339.4453
Module start 'content' 0.00750.6419 781.1016618.0859
Module end 'content' 0.64940.0015 1,399.187516.1563
Script end 0.6509  1,415.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5094160.0002
Check MTime0.00150.2237160.0001
Mysql Total
Database connection0.00070.112110.0007
Mysqli_queries0.586190.0319650.0090
Looping result0.00060.0979630.0000
Template Total0.623895.820.3119
Template load0.00230.346620.0011
Template processing0.621695.483420.3108
Template load and register function0.00010.016110.0001
states
state_id_array0.00090.138110.0009
state_identifier_array0.00080.122620.0004
Override
Cache load0.00190.2969400.0000
Sytem overhead
Fetch class attribute can translate value0.00080.122030.0003
Fetch class attribute name0.00120.189880.0002
XML
Image XML parsing0.00170.259330.0006
class_abstraction
Instantiating content class attribute0.00000.0031100.0000
General
dbfile0.00200.3142300.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs