how can i search article by first letter ?

Author Message

Coulibaly Ibrahim

Monday 05 June 2006 2:06:29 am

Hi all
i want to fetch all articles beginning by a specified letter?
for exemple, return all article beginning with the letter 'a'.

thanks.

Kristof Coomans

Monday 05 June 2006 3:37:41 am

Hi

You can use the content/tree ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/tree ) or content/list ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list ) fetch function, with the <i>like</i> filter operation ( http://ez.no/download/ez_publish/changelogs/ez_publish_3_6/new_features/enhanced_filters_for_content_list_content_tree ) on the name attribute.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Damien Pobel

Monday 05 June 2006 9:50:18 am

I wonder why those filters are not mentionned on the documentation page even in the last documentation version !?!

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Coulibaly Ibrahim

Monday 05 June 2006 10:33:11 am

thanks kristof.

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 31 2025 06:26:01
Script start
Timing: Jan 31 2025 06:26:01
Module start 'layout'
Timing: Jan 31 2025 06:26:01
Module start 'content'
Timing: Jan 31 2025 06:26:01
Module end 'content'
Timing: Jan 31 2025 06:26:01
Script end

Main resources:

Total runtime0.0224 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.0083 588.2578151.2266
Module start 'layout' 0.00840.0045 739.484436.6641
Module start 'content' 0.01280.0075 776.148490.1406
Module end 'content' 0.02040.0020 866.289133.9922
Script end 0.0224  900.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.5037140.0002
Check MTime0.00125.5169140.0001
Mysql Total
Database connection0.00104.385210.0010
Mysqli_queries0.005825.699930.0019
Looping result0.00000.075510.0000
Template Total0.00146.310.0014
Template load0.00104.295910.0010
Template processing0.00041.976210.0004
Override
Cache load0.00072.904710.0007
General
dbfile0.00146.104080.0002
String conversion0.00000.050040.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