Forums / Developer / Alphabetical Navigation

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