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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | flippy_template_vars-1299436-2.patch | 828 bytes | dooug |
| #1 | flippy_template_vars-1299436-1.patch | 490 bytes | dooug |
Comments
Comment #1
dooug commentedThese variables are included on the
flippy.tpl.php. They are in the variable$listas an array. You can access them like so:$list['prev']Alternatively, here is a patch to
flippy.modulethat would make those variables available (instead of in the array). You could also do this in the .tpl.php file.Comment #2
dooug commentedThis patch includes minor change to tpl that indicates the preprocess function.
Comment #3
eaton commentedThis appears to be fixed in the previously-committed #1448340: Request to be co-maintainer