eZ Community » Forums » Discussions » How to use load_data_map
expandshrink

Wednesday 26 October 2011 9:09:35 am - 7 replies

» Read full blog post

Introduction

load_data_map is a parameter of the fetch/content/tree and fetch/content/list template functions.

This article will show how to use it and explain the functionality behind it.

Wednesday 26 October 2011 10:19:02 am

Hi Dirk, very cool to see you active here happy.gif Emoticon

This tip is pretty useful, thanks for sharing. Do you think you could add the "tip" tag to this post, so it gets listed with all other tips there : http://share.ez.no/content/keyword/tip

Cheers and keep-up !

Wednesday 26 October 2011 11:13:08 am

Hi Dirk,

Thanks for this very usefull article !

Wednesday 26 October 2011 11:20:09 am

Hi,

This flag is enabled in 4 fetch functions:
 - content/list
 - content/tree
 - content/related_objects
 - content/reverse_related_objects

So, is "node_view_gui operator" like "$node.data_map.attribute access" about data_map loading ?

Modified on Wednesday 26 October 2011 11:59:26 am by Simon Boyer

Wednesday 26 October 2011 11:30:53 am

Hi Dirk !

It is a really nice tip with a clear explanation.

Thanks for sharing,

Thomas.

Wednesday 26 October 2011 11:33:12 am

So, is "node_view_gui operator" like "$node.data_map.attribute access" about data_map loading ?

Just calling $node.data_map will trigger eZ Publish to load the data_map. If you use

{node_view_gui content_node=$node view=line}

and inside the line.tpl the data_map will be accessed it will be loaded. If it won't be accessed it will not be loaded.

Wednesday 26 October 2011 11:58:01 am

Ok thanks !

Saturday 26 November 2011 8:40:53 pm

Good stuff, thanks for this lesson on optimizing template code!

Modified on Saturday 26 November 2011 8:41:22 pm by Sander van den Akker

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from