Forums / General / Multiple Locations for same Folder

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

eZ debug

Timing: Jan 19 2025 03:42:45
Script start
Timing: Jan 19 2025 03:42:45
Module start 'content'
Timing: Jan 19 2025 03:42:46
Module end 'content'
Timing: Jan 19 2025 03:42:46
Script end

Main resources:

Total runtime1.1490 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 590.0703180.8359
Module start 'content' 0.00720.9376 770.9063619.1641
Module end 'content' 0.94480.2041 1,390.0703337.3750
Script end 1.1489  1,727.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3716210.0002
Check MTime0.00160.1427210.0001
Mysql Total
Database connection0.00070.059910.0007
Mysqli_queries1.066792.83332020.0053
Looping result0.00230.20232000.0000
Template Total1.111996.820.5560
Template load0.00290.252320.0014
Template processing1.109096.521320.5545
Template load and register function0.00010.007810.0001
states
state_id_array0.00160.138710.0016
state_identifier_array0.00220.191620.0011
Override
Cache load0.00260.2223400.0001
Sytem overhead
Fetch class attribute can translate value0.00160.141040.0004
Fetch class attribute name0.00140.123480.0002
XML
Image XML parsing0.00180.154240.0004
class_abstraction
Instantiating content class attribute0.00000.0015100.0000
General
dbfile0.00260.2240410.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs