Fetch on attribute using attributes nice url

Author Message

Kedar Deshpande

Tuesday 16 February 2010 9:15:57 am

Hi, I'm doing a fetch using:

{def $posts = fetch( 'content', 'list', hash( parent_node_id, $blog.node_id,
'depth',0,
'class_filter_type', include,
'class_filter_array', array('blog_post'),
'attribute_filter', array( array( 'blog_post/title', '=', $blogpost ) )

) ) }

Unfortunately, the $blogpost parameter I'm sending in is in the nice url format of 'Hello-that-was-nice' but the blog_post/title is 'Hello that was nice'.

Is there a way to either to make the fetch using the nice url or change the nice url back to its original before doing a search?

thanks.

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

Main resources:

Total runtime1.3013 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.1641152.6406
Module start 'layout' 0.00580.0028 741.804739.4766
Module start 'content' 0.00861.2910 781.2813400.7891
Module end 'content' 1.29960.0016 1,182.07038.1250
Script end 1.3012  1,190.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2524160.0002
Check MTime0.00140.1085160.0001
Mysql Total
Database connection0.00070.056010.0007
Mysqli_queries1.264997.2080460.0275
Looping result0.00040.0310440.0000
Template Total1.270997.720.6354
Template load0.00180.135120.0009
Template processing1.269197.529920.6346
Template load and register function0.00020.017610.0002
states
state_id_array0.00150.115010.0015
state_identifier_array0.00180.141620.0009
Override
Cache load0.00140.1096130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.054010.0007
Fetch class attribute name0.00140.105710.0014
XML
Image XML parsing0.00010.010210.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.0538100.0001
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs