Hi guys,

I copied flippy.tpl to my theme folder in order to change the output. The file gets loaded and displays the pager correctly as long as I use the original code.

I need to use some of the variables listed under "Other variables":

 * - $current: The Node ID of the current node.
 * - $first: The Node ID of the first node.
 * - $prev: The Node ID of the previous node.
 * - $next: The Node ID of the next node.
 * - $last: The Node ID of the last node.

However, when I try using one of these variables I get an error message that they are undefined.

Undefined variable: nav in include() (Zeile 27 von /path/to/my/theme/templates/flippy.tpl.php).

Any idea what might be causing the problem or how I can actually access them inside the tpl file?

Thanks & Regards

Comments

dooug’s picture

Status: Active » Needs review
StatusFileSize
new490 bytes

These variables are included on the flippy.tpl.php. They are in the variable $list as an array. You can access them like so: $list['prev']

Alternatively, here is a patch to flippy.module that would make those variables available (instead of in the array). You could also do this in the .tpl.php file.

dooug’s picture

StatusFileSize
new828 bytes

This patch includes minor change to tpl that indicates the preprocess function.

eaton’s picture

Status: Needs review » Fixed

This appears to be fixed in the previously-committed #1448340: Request to be co-maintainer

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.