Alphabetical Navigation

Author Message

DeAndre Johnson

Saturday 01 August 2009 6:18:00 pm

Hi, I created a custom staff profile class and would like to give users the ability to browse staff with alpha-numeric navigation bar. I found a little info on this at http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/alphabetical_navigation.txt, but it's still vague to me as I'm not a eZP developer. Can any one help? I want the navigator bar to list each alphabet A-Z. and # for Numeric listing, fetch only specified class, and output list of names. I tried this from example but it didn't work.

 

{let children_count=fetch( content, list_count, hash( parent_node_id, $node.node_id,
                                                            objectname_filter, $view_parameters.namefilter ) )
           children=fetch( content, list, hash( parent_node_id, $node.node_id,
                                                sort_by, $node.sort_array,
                                                limit, $number_of_items,
                                                offset, $view_parameters.offset,
                                                objectname_filter, $view_parameters.namefilter ) ) }

<span class="alpha">
<a href="http://mysite.com/content/view/full/2/(namefilter)/a</a>
</span>

 

I am, because I choose to be!

Heath

Monday 03 August 2009 1:46:23 am

Try re-reading the pubsvn feature doc about this feature [0]
as it directly provides the answer. (See last 25 lines of file) [0]

{include name=navigator
              uri='design:navigator/alphabetical.tpl'
              page_uri=$node.url_alias
              item_count=$children_count
              view_parameters=$view_parameters
              node_id=$node.node_id
              item_limit=$number_of_items}<br />
{include name=navigator
              uri='design:navigator/google.tpl'
              page_uri=$node.url_alias
              item_count=$children_count
              view_parameters=$view_parameters
              node_id=$node.node_id
              item_limit=$number_of_items}

This should display the 1 - nX and A-Z navigator text links needed.

Cheers,
Heath

[0] http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/alphabetical_navigation.txt

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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

Main resources:

Total runtime0.0420 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.1250151.2109
Module start 'layout' 0.00640.0061 739.3359220.6875
Module start 'content' 0.01250.0266 960.0234997.8984
Module end 'content' 0.03900.0027 1,957.921933.9922
Script end 0.0418  1,991.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00348.2093140.0002
Check MTime0.00143.2491140.0001
Mysql Total
Database connection0.00102.417010.0010
Mysqli_queries0.00348.195130.0011
Looping result0.00000.040410.0000
Template Total0.00163.910.0016
Template load0.00143.229710.0014
Template processing0.00030.655310.0003
Override
Cache load0.00092.128910.0009
General
dbfile0.00030.822980.0000
String conversion0.00000.027840.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.0002 secs