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.