Share » Forums » Developer » Pagination in 3.4.1

Pagination in 3.4.1

Pagination in 3.4.1

Saturday 21 August 2004 12:04:38 pm - 2 replies

Modified on Saturday 21 August 2004 12:38:55 pm by Majkl Najt

Author Message

Björn Dieding@xrow.de

Sunday 22 August 2004 5:27:46 am

The code looks about fine...

Ask yourself followign questonis

Does $node exists at all?
Are you using this code inside a content/view(also override) template?
Did you create a View element?

Will it help to get the node_id from $module_result?


{let numberOfObjects=10
 articleCount=fetch( 'content', 'list_count',
                         hash( 'parent_node_id', $node.node_id ) )
 articleList=fetch( 'content', 'list', hash( 'parent_node_id', $node.node_id,
                                                 'sort_by', $node.sort_array,
                                                 'offset', $view_parameters.offset,
                                                 'limit', $numberOfObjects ) )}
{section name=articleLoop loop=$articleList}
    {node_view_gui view=element content_node=$articleLoop:item}
{/section}
{include name=navigator
         uri='design:navigator/google.tpl'
         page_uri=concat( '/content/view/full/', $node.node_id, '/' )
         item_count=$articleCount
         view_parameters=$view_parameters
         item_limit=$numberOfObjects}
{/let}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Majkl Najt

Sunday 22 August 2004 5:42:48 am

HI!

I was trying to do it on my own, so without /content/view.
But now i solved it already.

THanks for help anyway.

Majkl

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu