fetch in a xmlBlock attribute

Author Message

Peggy Gadiou

Thursday 14 August 2008 2:23:36 am

Hello

I want know how fetch a xmlblock attribute??

I have my class like this :

myClass
classement : xmlblock
name : textLine
Labels : xmlblock
city : textLine

And my fetch is :

{def $name = '*'}
{def $com= '*'}
{def $lab= '*'}

{set $children=fetch('content','list',hash(
	'parent_node_id',$node.node_id,
	'sort_by', array( 'attribute',true(),'myClass/city' ),
	'limit',$page_limit,
	'offset',$view_parameters.offset,
	'attribute_filter',array(
		array(myClass/name,'like',$name),
		array(myClass/city','like', $com),
		array(myClass/Labels,'like', $lab))
))

When I tryed only with name or city it's work,
When I tryed with name and city it's work,
but when I tryed with label attribute... I cry

help me please...

Thank

André R.

Thursday 14 August 2008 5:27:32 am

You can see on the doc witch datatypes that support sorting and attribute filter:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

xmlblock is unfortunately not one of them, and it would probably produce very slow fetching if it did support it and you used it.

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 16:02:52
Script start
Timing: Jan 18 2025 16:02:52
Module start 'layout'
Timing: Jan 18 2025 16:02:52
Module start 'content'
Timing: Jan 18 2025 16:02:52
Module end 'content'
Timing: Jan 18 2025 16:02:52
Script end

Main resources:

Total runtime0.0161 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 591.6719152.6250
Module start 'layout' 0.00460.0038 744.296939.4453
Module start 'content' 0.00830.0058 783.742289.4453
Module end 'content' 0.01410.0019 873.187530.3047
Script end 0.0160  903.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.7430140.0002
Check MTime0.00116.7428140.0001
Mysql Total
Database connection0.00053.307610.0005
Mysqli_queries0.002817.253330.0009
Looping result0.00000.161810.0000
Template Total0.00159.410.0015
Template load0.00084.838110.0008
Template processing0.00074.496710.0007
Override
Cache load0.00053.337210.0005
General
dbfile0.00138.349080.0002
String conversion0.00000.062440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs