Forums / Developer / Fetch on attribute using attributes nice url

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.